[hlwm] Disable trying to display polybar on every screen

This commit is contained in:
Marcel Kapfer 2021-05-09 21:13:12 +02:00
parent f78f4737d0
commit 7ea9f7f08b
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -7,10 +7,10 @@
killall -q polybar
while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload main &
done
else
polybar --reload main &
fi
# if type "xrandr"; then
# for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
# MONITOR=$m polybar --reload main &
# done
# else
polybar --reload main &
# fi