Further updates :)

This commit is contained in:
2021-06-05 01:17:37 +02:00
parent 59e46cffc6
commit ed4c95d7f4
10 changed files with 374 additions and 71 deletions

View File

@@ -28,7 +28,7 @@ secondary = #e60053
alert = #bd2c40
[bar/example]
;monitor = ${env:MONITOR:HDMI-1}
monitor = ${env:MONITOR:}
width = 100%
height = 27
;offset-x = 1%

View File

@@ -8,6 +8,12 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch bar
echo "---" >> /tmp/polybar.log
polybar example >>/tmp/polybar.log 2>&1 &
echo "Bars launched..."
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload example >>/tmp/polybar.log 2>&1 &
done
else
polybar --reload example >>/tmp/polybar.log 2>&1 &
fi
echo "Bars launched..."