From 8bd5b6b135b388b7135ccf0b30d893e6e7c4125c Mon Sep 17 00:00:00 2001 From: Quentin Snow Date: Tue, 21 Dec 2021 15:15:30 -0600 Subject: [PATCH] printscreen scrot support --- config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.h b/config.h index 109e484..61cbf58 100644 --- a/config.h +++ b/config.h @@ -64,6 +64,8 @@ static const char *termcmd[] = { "st", NULL }; static Key keys[] = { /* modifier key function argument */ + { NULL, XK_Print, spawn, SHCMD("scrot -q 100 '/home/quentin/temp/screenshots/%Y-%m-%d-%s.png' -e 'xclip -selection clipboard -t image/png -i $f'") } , + { MODKEY, XK_Print, spawn, SHCMD("setxkbmap -option grab:break_actions; xdotool key XF86Ungrab; scrot -s -q 100 '/home/quentin/temp/screenshots/%Y-%m-%d-%s.png' -e 'xclip -selection clipboard -t image/png -i $f'") } , { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} },