From 2d2378d16f0aa202b45398198349cb177fc54aa9 Mon Sep 17 00:00:00 2001 From: "P.P.A" Date: Sat, 8 Jul 2023 22:20:32 +0200 Subject: Screenshots with scrot --- config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 3a1647b..3f2f1c6 100644 --- a/config.h +++ b/config.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 */ -- cgit v1.2.3