aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2016-04-02 21:51:44 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2016-04-02 21:51:44 +0200
commit5588a18768114ea6fabf35b1c255bd331b69e7c3 (patch)
tree08cdcf6756bc78f7bbef0dbfa4d68c91d437b237
parent4204101ab389a6cd0ece10e5cdf12116c183a52f (diff)
Added printscr support
-rw-r--r--config.h2
1 files changed, 2 insertions, 0 deletions
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 } },