diff options
| author | P.P.A <adolphs@moselle.moe> | 2023-07-08 22:20:32 +0200 |
|---|---|---|
| committer | P.P.A <adolphs@moselle.moe> | 2023-07-08 22:20:32 +0200 |
| commit | 2d2378d16f0aa202b45398198349cb177fc54aa9 (patch) | |
| tree | 983fe72c54f4cfa1c6b04ae62b1897e80e0bafca /config.h | |
| parent | 530bb1e04b973dda11d4a2dbd0117735746fd1a3 (diff) | |
Screenshots with scrot
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |
