summaryrefslogtreecommitdiffhomepage
path: root/config.def.h
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-04-14 11:23:18 +0200
committerbakkeby <[email protected]>2021-04-14 11:23:18 +0200
commit6e80cb5f366b297c124da5139abf3b2199887e04 (patch)
treec2be8a1ac9c0c095058aaa0185ffc4202b1263e6 /config.def.h
parent7efb64d68539666e8da8f7311e706954e6018fdb (diff)
downloaddwm-flexipatch-6e80cb5f366b297c124da5139abf3b2199887e04.tar.gz
dwm-flexipatch-6e80cb5f366b297c124da5139abf3b2199887e04.zip
Upgrading statuscmd patch.
The original statuscmd patch has been renamed to statuscmd-nosignal to separate the logic from the dwmblocks integration that involves signals. I assume as the latter has become more popular it has replaced the statuscmd in name.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 72e87eb..d4fd4e1 100644
--- a/config.def.h
+++ b/config.def.h
@@ -780,8 +780,13 @@ static const char *termcmd[] = { "st", NULL };
#define STATUSBAR "dwmblocks"
#else
/* commands spawned when clicking statusbar, the mouse button pressed is exported as BUTTON */
-static const char *statuscmds[] = { "notify-send Mouse$BUTTON", "notify-send Cat$BUTTON", "notify-send Dog$BUTTON" };
-static char *statuscmd[] = { "/bin/sh", "-c", NULL, NULL };
+static const StatusCmd statuscmds[] = {
+ { "notify-send Volume$BUTTON", 1 },
+ { "notify-send CPU$BUTTON", 2 },
+ { "notify-send Battery$BUTTON", 3 },
+};
+/* test the above with: xsetroot -name "$(printf '\x01Volume |\x02 CPU |\x03 Battery')" */
+static const char *statuscmd[] = { "/bin/sh", "-c", NULL, NULL };
#endif // BAR_DWMBLOCKS_PATCH
#endif // BAR_STATUSCMD_PATCH