Update launch_polybar

This commit is contained in:
Vlad Doster 2020-04-02 02:43:09 -04:00 committed by GitHub
parent 7d49eaeb46
commit 5d743a1192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,10 @@
#!/bin/sh
# Terminate already running bar instances
killall -q polybar
#killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
while pgrep -x polybar >/dev/null; killall -q polybar; done
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload main &