muse / Captain

A dynamic lemonbar script written almost entirely in bash.
MIT License
49 stars 5 forks source link

Add reload based on arbitrary command output. #10

Closed neeasade closed 8 years ago

neeasade commented 8 years ago

This patch adds the ability to specify a reload=-1 in your captainrc, along with a reloadcommand. If you do so, the related captain.d script will only be executed on output from reloadcommand. things like the window script won't have to query bspc every 0.1 seconds, instead only running on new input from bspc subscribe.

edit: I believe this would help with https://github.com/muse/Captain/issues/8

neeasade commented 8 years ago

per conversation with @muse in irc, this now checks if reload has been set to anything not just 0-9. and if so, treats it as a command.

muse commented 8 years ago

Appreciate the effort. Thanks!