diff options
Diffstat (limited to 'dwm/config.h')
| -rw-r--r-- | dwm/config.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/dwm/config.h b/dwm/config.h index c94f430..f24f70b 100644 --- a/dwm/config.h +++ b/dwm/config.h @@ -71,6 +71,9 @@ 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 *calendarcmd[] = { "/bin/sh", "-c", "st -e cal -3", NULL }; +static const char *dunstlogcmd[] = { "/bin/sh", "-c", "st -e less \"$HOME/.cache/dunst/dunst.log\"", NULL }; +static const char *powermenucmd[] = { "/bin/sh", "-c", "printf 'lock\\nreboot\\nshutdown' | dmenu | xargs -r -I{} sh -c 'case \"{}\" in lock) slock ;; reboot) loginctl reboot ;; shutdown) loginctl poweroff ;; esac'", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -123,12 +126,13 @@ static const Key keys[] = { static const Button buttons[] = { /* click event mask button function argument */ { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, - { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, +{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, +{ ClkWinTitle, 0, Button2, zoom, {0} }, +{ ClkStatusText, 0, Button1, clickstatus, {0} }, +{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, +{ ClkClientWin, MODKEY, Button1, movemouse, {0} }, +{ ClkClientWin, MODKEY, Button2, togglefloating, {0} }, +{ ClkClientWin, MODKEY, Button3, resizemouse, {0} }, { ClkTagBar, 0, Button1, view, {0} }, { ClkTagBar, 0, Button3, toggleview, {0} }, { ClkTagBar, MODKEY, Button1, tag, {0} }, |
