polybar starte auf allen monitoren
This commit is contained in:
parent
2ac5a535c0
commit
4ccc25ba1b
2 changed files with 7 additions and 5 deletions
|
@ -21,7 +21,8 @@ secondary = #e60053
|
||||||
alert = #bd2c40
|
alert = #bd2c40
|
||||||
|
|
||||||
[bar/bar]
|
[bar/bar]
|
||||||
;monitor = ${env:MONITOR:HDMI-1}
|
monitor = ${env:MONITOR:}
|
||||||
|
; launch.sh setzt die Variable damit die Bar auf jedem Monitor erscheint
|
||||||
width = 110%
|
width = 110%
|
||||||
height = 27
|
height = 27
|
||||||
;offset-x = 1%
|
;offset-x = 1%
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
# Terminate already running bar instances
|
# Terminate already running bar instances
|
||||||
killall -q polybar
|
killall -q polybar
|
||||||
# Launch bar
|
# Launch bar
|
||||||
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
|
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||||||
polybar --config=/home/mg/dotfiles/polybar/config bar 2>&1 | tee -a /tmp/polybar.log & disown
|
MONITOR=$m polybar --reload --config=/home/mg/dotfiles/polybar/config bar&
|
||||||
|
# damit wird polybar für jeden monitor gestartet
|
||||||
echo "Bars launched..."
|
# https://github.com/polybar/polybar/issues/763
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue