diff options
| author | bakkeby <[email protected]> | 2021-04-14 10:42:52 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2021-04-14 10:42:52 +0200 |
| commit | 7efb64d68539666e8da8f7311e706954e6018fdb (patch) | |
| tree | 983af71b683cd89ef62fd6e04f9bf1bb1d0707f2 /config.def.h | |
| parent | bd5f5608a331b10746cde9c3ecbba24ae100f64d (diff) | |
| download | dwm-flexipatch-7efb64d68539666e8da8f7311e706954e6018fdb.tar.gz dwm-flexipatch-7efb64d68539666e8da8f7311e706954e6018fdb.zip | |
Upgraded the dwmblocks patch for statuscmd which changes the signalling
mechanism from SIGUSR1 to SIGRTMIN which is likely to cause issues for
those that already have a working setup. A compatibility option has been
added which changes this back to SIGUSR1. Note that configuration was
also changed.
This was ref. reported issue #114.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h index da77ebf..72e87eb 100644 --- a/config.def.h +++ b/config.def.h @@ -774,11 +774,16 @@ static const char *dmenucmd[] = { }; static const char *termcmd[] = { "st", NULL }; -#if BAR_STATUSCMD_PATCH && !BAR_DWMBLOCKS_PATCH +#if BAR_STATUSCMD_PATCH +#if BAR_DWMBLOCKS_PATCH +/* This defines the name of the executable that handles the bar (used for signalling purposes) */ +#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" }; +static const char *statuscmds[] = { "notify-send Mouse$BUTTON", "notify-send Cat$BUTTON", "notify-send Dog$BUTTON" }; static char *statuscmd[] = { "/bin/sh", "-c", NULL, NULL }; -#endif // BAR_STATUSCMD_PATCH | DWMBLOCKS_PATCH +#endif // BAR_DWMBLOCKS_PATCH +#endif // BAR_STATUSCMD_PATCH #if ON_EMPTY_KEYS_PATCH static const char* firefoxcmd[] = {"firefox", NULL}; @@ -1209,9 +1214,9 @@ static Button buttons[] = { #endif // BAR_WINTITLEACTIONS_PATCH { ClkWinTitle, 0, Button2, zoom, {0} }, #if BAR_STATUSCMD_PATCH && BAR_DWMBLOCKS_PATCH - { ClkStatusText, 0, Button1, sigdwmblocks, {.i = 1 } }, - { ClkStatusText, 0, Button2, sigdwmblocks, {.i = 2 } }, - { ClkStatusText, 0, Button3, sigdwmblocks, {.i = 3 } }, + { ClkStatusText, 0, Button1, sigstatusbar, {.i = 1 } }, + { ClkStatusText, 0, Button2, sigstatusbar, {.i = 2 } }, + { ClkStatusText, 0, Button3, sigstatusbar, {.i = 3 } }, #elif BAR_STATUSCMD_PATCH { ClkStatusText, 0, Button1, spawn, {.v = statuscmd } }, { ClkStatusText, 0, Button2, spawn, {.v = statuscmd } }, |
