summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoadAlami <moadalami40@gmail.com>2025-05-19 17:06:05 +0100
committermoadAlami <moadalami40@gmail.com>2025-05-19 17:06:05 +0100
commit0cd939bece34cb642299c745f7f92a05f92dbd19 (patch)
tree6ca9613a7d95332460751f3a1f48b34f5f15e89a
parent2dcb5b507856664ab78d5de51d6d667a4c9655f6 (diff)
screengrab with mod+shift+s
-rw-r--r--config.h1
1 files changed, 1 insertions, 0 deletions
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 */