From 6e80cb5f366b297c124da5139abf3b2199887e04 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Wed, 14 Apr 2021 11:23:18 +0200 Subject: 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. --- config.def.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'config.def.h') 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 -- cgit v1.2.3