allow specify cursor theme and size

Co-authored-by: Leonardo Hernández Hernández <leohdz172@protonmail.com>
This commit is contained in:
egorguslyan 2021-12-04 16:34:17 +03:00 committed by Leonardo Hernández Hernández
parent 83dccced8e
commit 93ff8ec760
No known key found for this signature in database
GPG key ID: E538897EE11B9624
2 changed files with 8 additions and 1 deletions

7
dwl.c
View file

@ -2692,7 +2692,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);
cursor_mgr = wlr_xcursor_manager_create(cursortheme, atoi(cursorsize));
setenv("XCURSOR_SIZE", cursorsize, 1);
if (cursortheme)
setenv("XCURSOR_THEME", cursortheme, 1);
else
unsetenv("XCURSOR_THEME");
/*
* wlr_cursor *only* displays an image on screen. It does not move around