polybar starte auf allen monitoren

This commit is contained in:
Michael Grote 2021-06-06 18:07:36 +02:00
parent 2ac5a535c0
commit 4ccc25ba1b
2 changed files with 7 additions and 5 deletions

View file

@ -21,7 +21,8 @@ secondary = #e60053
alert = #bd2c40
[bar/bar]
;monitor = ${env:MONITOR:HDMI-1}
monitor = ${env:MONITOR:}
; launch.sh setzt die Variable damit die Bar auf jedem Monitor erscheint
width = 110%
height = 27
;offset-x = 1%

View file

@ -2,7 +2,8 @@
# Terminate already running bar instances
killall -q polybar
# Launch bar
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
polybar --config=/home/mg/dotfiles/polybar/config bar 2>&1 | tee -a /tmp/polybar.log & disown
echo "Bars launched..."
for m in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$m polybar --reload --config=/home/mg/dotfiles/polybar/config bar&
# damit wird polybar für jeden monitor gestartet
# https://github.com/polybar/polybar/issues/763
done