summaryrefslogtreecommitdiff
path: root/dwm/config.h
diff options
context:
space:
mode:
authorauric <104602845+ihateamongus@users.noreply.github.com>2025-09-07 21:54:48 -0500
committerauric <104602845+ihateamongus@users.noreply.github.com>2025-09-07 21:54:48 -0500
commit15a27bdd175b678b5ddbb34d8f5ed587388c590c (patch)
tree55d338bd83a449c163acb0a7c23a2dc34ca8c1d0 /dwm/config.h
parent54ab8df8c1c37d45d55a32385f9dac3a5fb01932 (diff)
Integrate built-in status bar
Diffstat (limited to 'dwm/config.h')
-rw-r--r--dwm/config.h16
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} },