mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 17:54:14 +00:00
allow setting the default cursor theme/size
This commit is contained in:
parent
650a918010
commit
0f6f7ea46f
@ -7,6 +7,8 @@
|
||||
static const int sloppyfocus = 1; /* focus follows mouse */
|
||||
static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */
|
||||
static const unsigned int borderpx = 1; /* border pixel of windows */
|
||||
static const char *cursor_theme = NULL;
|
||||
static const char cursor_size[] = "24"; /* Make sure it's a valid integer, otherwise things will break */
|
||||
static const float rootcolor[] = COLOR(0x222222ff);
|
||||
static const float bordercolor[] = COLOR(0x444444ff);
|
||||
static const float focuscolor[] = COLOR(0x005577ff);
|
||||
|
||||
8
dwl.c
8
dwl.c
@ -2509,8 +2509,12 @@ setup(void)
|
||||
* Xcursor themes to source cursor images from and makes sure that cursor
|
||||
* images are available at all scale factors on the screen (necessary for
|
||||
* HiDPI support). Scaled cursors will be loaded with each output. */
|
||||
cursor_mgr = wlr_xcursor_manager_create(NULL, 24);
|
||||
setenv("XCURSOR_SIZE", "24", 1);
|
||||
cursor_mgr = wlr_xcursor_manager_create(cursor_theme, atoi(cursor_size));
|
||||
setenv("XCURSOR_SIZE", cursor_size, 1);
|
||||
if (cursor_theme)
|
||||
setenv("XCURSOR_THEME", cursor_theme, 1);
|
||||
else
|
||||
unsetenv("XCURSOR_THEME");
|
||||
|
||||
/*
|
||||
* wlr_cursor *only* displays an image on screen. It does not move around
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user