Since a recent system update, not including Polybar, I’ve been running into the following bug. When I launch Polybar for all connected monitors, and after disconnecting and reconnecting any monitor, all Polybar processes will terminate with the following output:
notice: Received signal(15): Terminated
notice: Termination signal received, shutting down...
I tried setting screenchange-reload = false and monitor-strict = false in my Polybar config, but neither helped.
I’m not sure what process is sending Polybar a SIGTERM signal. Does anyone know how I can find this process?
I do not think this is the BUG with the way we build the package… and… as it is now in community we do not build the package anyway for the EndeavourOS repo
I’m doing it with the following snippet in an autorandr postswitch:
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
polybar --reload top -l info &>> log.txt&
I’ve just realized what’s happening. This runs once my monitor is reconnected, which causes polybar to close, but for some reason, the last line doesn’t relaunch polybar even though I can see its output in the log file, which doesn’t indicate any errors.