From 5588a18768114ea6fabf35b1c255bd331b69e7c3 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sat, 2 Apr 2016 21:51:44 +0200 Subject: Added printscr support --- config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 56f86f9..9c1510b 100644 --- a/config.h +++ b/config.h @@ -99,6 +99,7 @@ static const char *browsercmd[] = { "chromium", NULL }; static const char *weechatcmd[] = { "xterm", "-name", "weechat", "-e", "weechat", NULL }; static const char *playercmd[] = { "deadbeef", NULL }; static const char *editorcmd[] = { "gedit", NULL }; +static const char *scrotcmd[] = { "scrot", "~/screenshots/%Y-%m-%d-%H:%M:%S.png", NULL }; static const char *lowervolumecmd[] = { "amixer", "-q", "set", "Master", "2dB-", NULL }; static const char *raisevolumecmd[] = { "amixer", "-q", "set", "Master", "2dB+", NULL }; @@ -112,6 +113,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_p, spawn, {.v = playercmd } }, { MODKEY|ShiftMask, XK_o, spawn, {.v = weechatcmd } }, { MODKEY|ShiftMask, XK_i, spawn, {.v = editorcmd } }, + { 0, XK_Print, spawn, {.v = scrotcmd } }, { MODKEY, XK_Left, focusstack, {.i = -1 } }, { MODKEY, XK_Right, focusstack, {.i = +1 } }, -- cgit v1.2.3