francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.
ISC License
911 stars 50 forks source link

Reloading sway config file does not change aspect of bar #92

Closed joaonunatings closed 2 years ago

joaonunatings commented 2 years ago

Previously I had configured wob with default settings (just like in the sway example in README)

However when I changed this line exec mkfifo $WOBSOCK && tail -f $WOBSOCK | wob to exec mkfifo $WOBSOCK && tail -f $WOBSOCK | wob -a top reloaded sway, no changes were made.

francma commented 2 years ago

That's because exec is executed only when sway starts.

exec_always is executed on start and also on reload, but you need to kill and start wob again. Something like this:

exec_always killall wob; rm -f $WOBSOCK; mkfifo $WOBSOCK && tail -f $WOBSOCK | wob -a top

This is not really a wob issue, this is how the sway and i3wm works.

joaonunatings commented 2 years ago

oh I didn't knew this, thank you

octvs commented 1 year ago

Might be better to include -g flag on killall command

exec_always "{ pidof wob && killall -g wob; }; rm -f $WOBSOCK; mkfifo $WOBSOCK && tail -f $WOBSOCK | wob"

This would terminate as well, otherwise dangling tail process.