summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 3a1647b..3f2f1c6 100644
--- a/config.def.h
+++ b/config.def.h
@@ -72,6 +72,8 @@ static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", normbgco
static const char *termcmd[] = { "st", NULL };
static const char scratchpadname[] = "scratchpad";
static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL };
+static const char *screenshot[] = { "scrot", "-e", "mv $f ~/Bilder", NULL };
+static const char *windowshot[] = { "scrot", "--focused", "-e", "mv $f ~/Bilder", NULL };
static const Key keys[] = {
/* modifier key function argument */
@@ -115,6 +117,8 @@ static const Key keys[] = {
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
+ { 0, XK_Print, spawn, {.v = screenshot } },
+ { Mod1Mask, XK_Print, spawn, {.v = windowshot } },
};
/* button definitions */