From 7c6d9e6599d947b20c4e548d9df7fb08ea6ad5ae Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Sun, 12 Jun 2016 18:52:34 -0600 Subject: [PATCH] alt-ctrl screenshot added --- dwm.config.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dwm.config.h b/dwm.config.h index 45e1be5..3a25647 100644 --- a/dwm.config.h +++ b/dwm.config.h @@ -5,7 +5,7 @@ /* appearance */ static const char font[] = "Inconsolataicon-12"; -#define NUMCOLORS 9 +#define NUMCOLORS 9 static const char colors[NUMCOLORS][ColLast][9] = { // border foreground background { "#212121", "#00FFFF", "#2F4F4F" }, // 0 = normal @@ -66,6 +66,8 @@ static const char *mute[] = { "amixer", "sset", "Master", "toggle", NULL}; static const char *cmusplaypause[] = { "cmus-remote", "-u", NULL}; static const char *cmusnext[] = { "cmus-remote", "--next", NULL}; static const char *cmusprev[] = { "cmus-remote", "--prev", NULL}; +/*screenshot*/ +static const char *screenshot[] = { "scrot", NULL}; static Key keys[] = { /* modifier key function argument */ @@ -77,6 +79,7 @@ static Key keys[] = { { MODKEY, XK_u, spawn, {.v = cmusplaypause} }, { MODKEY, XK_bracketright, spawn, {.v = cmusnext} }, { MODKEY, XK_bracketleft, spawn, {.v = cmusprev} }, + { MODKEY|ControlMask, XK_s, spawn, {.v = screenshot} }, { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} },