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.
This commit is contained in:
bakkeby
2021-04-14 11:23:18 +02:00
parent 7efb64d685
commit 6e80cb5f36
4 changed files with 34 additions and 27 deletions

View File

@@ -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