Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

[Feature] Option to Execute Command Upon Entering State

Open WammKD opened this issue 2 years ago • 0 comments

As the title denotes, you could designate a command to run for when the state switches to a particular state; it would run once and that would be it until it switches to a different state (assuming the config. file has any command set for said new state).

I'm thinking this could be useful in, say, the battery module to execute a notification to dunst when entering state full or even run a command to suspend when entering the state critical.

I'm assuming it wouldn't involve much more as waybar has to keep track of the state, anyway, so it's just executing a user command along with changing the icon, etc. but I always could be mistaken.

WammKD avatar Apr 09 '22 08:04 WammKD