From ffe8ea6d59523025d16216ea1d99616df9e0b0ce Mon Sep 17 00:00:00 2001 From: aj Date: Fri, 8 Mar 2019 14:43:51 +0000 Subject: [PATCH] fixed polybar duplication --- polybar/config | 2 +- polybar/launch.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/polybar/config b/polybar/config index 73a59ff..d6b7fb4 100644 --- a/polybar/config +++ b/polybar/config @@ -31,7 +31,7 @@ screenchange-reload = true ;margin-bottom = 0 [bar/top] -monitor = ${env:MONITOR:eDP1} +monitor = ${env:MONITOR:} height = 26 radius = 7.0 ;fixed-center = false diff --git a/polybar/launch.sh b/polybar/launch.sh index ae048f8..bca5a03 100755 --- a/polybar/launch.sh +++ b/polybar/launch.sh @@ -7,6 +7,10 @@ killall -q polybar while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch bar1 and bar2 -polybar top & +#polybar top & + +for m in $(polybar --list-monitors | cut -d":" -f1); do + MONITOR=$m polybar --reload top & +done echo "Bars launched..."