Adding screenshot capabilities using scrot and stuff

This commit is contained in:
Jarkko Toivanen 2024-07-16 05:23:03 +03:00
parent 6cadef10c6
commit 671d78516f
Signed by: jt
GPG key ID: 9151B109B73ECAD5

View file

@ -117,6 +117,9 @@ static const Key keys[] = {
TAGKEYS( XK_8, 7) TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8) TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} }, { 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 */ /* button definitions */