diff options
Diffstat (limited to 'core/dwm')
| -rw-r--r-- | core/dwm/config.def.h | 4 | ||||
| -rw-r--r-- | core/dwm/config.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/core/dwm/config.def.h b/core/dwm/config.def.h index c94f430..394937d 100644 --- a/core/dwm/config.def.h +++ b/core/dwm/config.def.h @@ -71,6 +71,8 @@ static const char *screenshotcmd[] = { "flameshot", "gui", NULL }; static const char *mediaplaypause[] = { "playerctl", "play-pause", NULL }; static const char *medianext[] = { "playerctl", "next", NULL }; static const char *mediaprev[] = { "playerctl", "previous", NULL }; +static const char *powermenucmd[] = { "/bin/sh", "-c", "power-menu.sh", NULL }; +static const char *steamcmd[] = { "/bin/sh", "-c", "steam-dmenu.sh", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -79,6 +81,8 @@ static const Key keys[] = { { MODKEY, XK_F1, spawn, {.v = browsercmd } }, { 0, XK_Print, spawn, {.v = screenshotcmd } }, { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, + { MODKEY|ShiftMask, XK_p, spawn, {.v = powermenucmd } }, + { MODKEY|ControlMask, XK_p, spawn, {.v = steamcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, diff --git a/core/dwm/config.h b/core/dwm/config.h index c89c80d..9525e86 100644 --- a/core/dwm/config.h +++ b/core/dwm/config.h @@ -73,7 +73,8 @@ static const char *medianext[] = { "playerctl", "next", NULL }; static const char *mediaprev[] = { "playerctl", "previous", NULL }; static const char *calendarcmd[] = { "/bin/sh", "-c", "st -e sh -c 'cal -3 | less'", NULL }; static const char *dunstlogcmd[] = { "/bin/sh", "-c", "st -e sh -c 'less -+F \"$HOME/.cache/dunst/dunst.log\"'", NULL }; -static const char *powermenucmd[] = { "/bin/sh", "-c", "printf '%s\n' lock reboot shutdown | dmenu | xargs -r -I{} sh -c 'case \"{}\" in lock) slock ;; reboot) loginctl reboot ;; shutdown) loginctl poweroff ;; esac'", NULL }; +static const char *powermenucmd[] = { "/bin/sh", "-c", "power-menu.sh", NULL }; +static const char *steamcmd[] = { "/bin/sh", "-c", "steam-dmenu.sh", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -82,6 +83,8 @@ static const Key keys[] = { { MODKEY, XK_F1, spawn, {.v = browsercmd } }, { 0, XK_Print, spawn, {.v = screenshotcmd } }, { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, + { MODKEY|ShiftMask, XK_p, spawn, {.v = powermenucmd } }, + { MODKEY|ControlMask, XK_p, spawn, {.v = steamcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, |
