From 2ae5cf791290fad9fec319ed8954f5555cc2e935 Mon Sep 17 00:00:00 2001 From: irrlicht Date: Fri, 23 Oct 2026 21:53:35 +0200 Subject: [PATCH] Add Print key binding for snipping tool Binds the Print key to snip.sh (slurp+grim+wl-clipboard), spawned the same way as the volume/brightness scripts. Co-Authored-By: Claude Sonnet 5 --- config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.h b/config.h index 4b42dcc..508260f 100644 --- a/config.h +++ b/config.h @@ -131,6 +131,7 @@ static const char *volmute[] = { "/home/irrlicht/nixos/scripts/volume.sh", static const char *brigup[] = { "/home/irrlicht/nixos/scripts/brightness.sh", "up", NULL }; static const char *brigdown[] = { "/home/irrlicht/nixos/scripts/brightness.sh", "down", NULL }; static const char *lockcmd[] = { "waylock", NULL }; +static const char *snipcmd[] = { "/home/irrlicht/nixos/scripts/snip.sh", NULL }; static const Key keys[] = { /* Note that Shift changes certain key codes: 2 -> at, etc. */ @@ -172,6 +173,7 @@ static const Key keys[] = { { 0, XKB_KEY_XF86AudioMute, spawn, {.v = volmute} }, { 0, XKB_KEY_XF86MonBrightnessUp, spawn, {.v = brigup} }, { 0, XKB_KEY_XF86MonBrightnessDown, spawn, {.v = brigdown} }, + { 0, XKB_KEY_Print, spawn, {.v = snipcmd} }, /* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */ { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_Terminate_Server, quit, {0} },