This commit is contained in:
2026-11-07 01:04:15 +01:00
parent 922023c95a
commit 1d5c6c0e24
+2
View File
@@ -135,6 +135,7 @@ static const char *brigup[] = { "/home/irrlicht/nixos/scripts/brightness.
static const char *brigdown[] = { "/home/irrlicht/nixos/scripts/brightness.sh", "down", NULL }; static const char *brigdown[] = { "/home/irrlicht/nixos/scripts/brightness.sh", "down", NULL };
static const char *lockcmd[] = { "waylock", NULL }; static const char *lockcmd[] = { "waylock", NULL };
static const char *snipcmd[] = { "/home/irrlicht/nixos/scripts/snip.sh", NULL }; static const char *snipcmd[] = { "/home/irrlicht/nixos/scripts/snip.sh", NULL };
static const char *autoclickcmd[] = { "/home/irrlicht/nixos/scripts/autoclick.sh", NULL };
static const Key keys[] = { static const Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
@@ -185,6 +186,7 @@ static const Key keys[] = {
{ 0, XKB_KEY_XF86MonBrightnessUp, spawn, {.v = brigup} }, { 0, XKB_KEY_XF86MonBrightnessUp, spawn, {.v = brigup} },
{ 0, XKB_KEY_XF86MonBrightnessDown, spawn, {.v = brigdown} }, { 0, XKB_KEY_XF86MonBrightnessDown, spawn, {.v = brigdown} },
{ 0, XKB_KEY_Print, spawn, {.v = snipcmd} }, { 0, XKB_KEY_Print, spawn, {.v = snipcmd} },
{ WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT, XKB_KEY_c, spawn, {.v = autoclickcmd} },
/* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */ /* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */
{ WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_BackSpace, quit, {0} }, { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_BackSpace, quit, {0} },