You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Modify this file to change what commands output to your statusbar, and recompile using the make command.staticconstBlockblocks[] = {
/*Icon*//*Command*//*Update Interval*//*Update Signal*/
{ "my script: ", "myscript.sh", 0, 12},
};
//sets delimeter between status commands. NULL character ('\0') means no delimeter.staticchardelim[] =" | ";
staticunsigned intdelimLen=5;
What I would like to happen is for the block to display "my script: none" at first, and every time I left-click it I would like it to display "my script: left", and "my script: right" every time I right-click it.
The current behavior is that when I left-click the block, notify-send works and I get a notification saying "hello", and when I right-click it I get a notification saying "goodbye", but the $clicked variable stays the same for some reason, it doesn't change even though I update it's value after calling notify-send.
Problem
I have a simple bash script
myscript.sh
:and I have this in
dwmblocks/blocks.h
:and this in
dwm/config.h
:What I would like to happen is for the block to display "my script: none" at first, and every time I left-click it I would like it to display "my script: left", and "my script: right" every time I right-click it.
The current behavior is that when I left-click the block,
notify-send
works and I get a notification saying "hello", and when I right-click it I get a notification saying "goodbye", but the$clicked
variable stays the same for some reason, it doesn't change even though I update it's value after callingnotify-send
.What am I missing?
Patches
I applied this patch to dwm: https://dwm.suckless.org/patches/statuscmd/dwm-statuscmd-20210405-67d76bd.diff
and this one to dwmblocks: https://dwm.suckless.org/patches/statuscmd/dwmblocks-statuscmd-20210402-96cbb45.diff
The text was updated successfully, but these errors were encountered: