diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2016-04-02 21:51:44 +0200 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2016-04-02 21:51:44 +0200 |
commit | 5588a18768114ea6fabf35b1c255bd331b69e7c3 (patch) | |
tree | 08cdcf6756bc78f7bbef0dbfa4d68c91d437b237 | |
parent | 4204101ab389a6cd0ece10e5cdf12116c183a52f (diff) |
Added printscr support
-rw-r--r-- | config.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 } }, |