diff options
author | Julian T <j@teule.nl> | 2018-09-12 12:41:41 +0200 |
---|---|---|
committer | Julian T <j@teule.nl> | 2018-09-12 12:41:41 +0200 |
commit | 3c4716742717a0a6bca4eb7393d72ee91e3a38e4 (patch) | |
tree | 1207bfdc41b623e47a351865ba692e4f7a83dc1b /config.h | |
parent | ad449094048a818317fcba26bd2416dc9aed347a (diff) |
Added shutdown keys
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -53,6 +53,7 @@ static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", "0", "-5%" static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "0", "toggle", NULL}; static const char *brightup[] = { "xbacklight", "-inc", "10", NULL}; static const char *brightdown[] = { "xbacklight", "-dec", "10", NULL}; +static const char *exitXsession[] = { "/home/julian/.dwmSession.sh", "-e" }; #define MODKEY Mod1Mask #define TAGKEYS(KEY,TAG) \ @@ -104,7 +105,8 @@ static Key keys[] = { TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask, XK_e, quit, {0} }, + { MODKEY|ShiftMask, XK_e, spawn, {.v = exitXsession} }, + { MODKEY|ShiftMask, XK_r, quit, {0} }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, |