From 0cd939bece34cb642299c745f7f92a05f92dbd19 Mon Sep 17 00:00:00 2001 From: moadAlami Date: Mon, 19 May 2025 17:06:05 +0100 Subject: screengrab with mod+shift+s --- config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'config.h') diff --git a/config.h b/config.h index c8f2cfb..af638dd 100644 --- a/config.h +++ b/config.h @@ -172,6 +172,7 @@ static const Key keys[] = { {MODKEY, XK_n, spawn, SHCMD("clipmenu")}, {MODKEY, XK_F12, spawn, SHCMD("scrot -e 'mv $f /home/mouad/Pictures/Screenshots/' && notify-send '📸 Screenshot taken'")}, + {MODKEY|ShiftMask, XK_s, spawn, SHCMD("scrot -s /home/mouad/Pictures/Screengrabs/%Y-%m-%d-%H%M%S.png -e 'xclip -selection clipboard -t image/png -i $f && notify-send \"📸 Screenshot saved and copied\"'")}, }; /* button definitions */ -- cgit v1.2.3