mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 08:16:10 +01:00
Further updates :)
This commit is contained in:
@@ -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%
|
||||
|
||||
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user