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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user