Closed quite closed 6 months ago
There already is :) You can update the entire bar with SIGUSR1
signal (mentioned in the readme). Also, each block has a signal = n
property (mentioned here) which lets you update a specific block using SIGRTMIN+n
.
Imagine a custom block which shows something, with a click action that changes the state of that something
In this specific case, you can set update = true
in your click handler to update the block when clicking. If the output depends on the changed state, also set sync = true
:
[[block.click]]
button = "left"
update = true
sync = true
cmd = "..."
Oh, thanks a lot. I found it in the README now. Sorry for the noise.
It would be nice if there was some way to trigger an immediate refresh of the bar (or block). Imagine a custom block which shows something, with a click action that changes the state of that something. Refreshing the bar or block immediately would be nice, while still keeping the same default refresh interval (seconds).