fixed polybar duplication

This commit is contained in:
aj 2019-03-08 14:43:51 +00:00
parent c4ce7b9f8c
commit ffe8ea6d59
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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..."