From 671d78516f89c292100adb5db8fb35a485987c59 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Tue, 16 Jul 2024 05:23:03 +0300 Subject: [PATCH] Adding screenshot capabilities using scrot and stuff --- config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.h b/config.h index 80288bb..4e6f9e8 100644 --- a/config.h +++ b/config.h @@ -117,6 +117,9 @@ static const Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + { 0, XK_Print, spawn, SHCMD("scrot -s -F $(xdg-user-dir PICTURES)/scrot/scrot.png -e 'xclip -selection clipboard -t image/png -i $f'") }, + { WINKEY, XK_Print, spawn, SHCMD("scrot -M 0 -F $(xdg-user-dir PICTURES)/scrot/scrot.png -e 'xclip -selection clipboard -t image/png -i $f'") }, + { ALTKEY, XK_Print, spawn, SHCMD("scrot -u -F $(xdg-user-dir PICTURES)/scrot/scrot.png -e 'xclip -selection clipboard -t image/png -i $f'") }, }; /* button definitions */