Closed joaonunatings closed 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.
oh I didn't knew this, thank you
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.
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
toexec mkfifo $WOBSOCK && tail -f $WOBSOCK | wob -a top
reloaded sway, no changes were made.