Use first screen for polybar

master
Quentin Duchemin 2020-05-04 14:43:12 +02:00
parent f5ca30ba7c
commit 7586f3c64e
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ if type "xrandr"; then
monitors=$(xrandr --query | grep " connected" | cut -d" " -f1) monitors=$(xrandr --query | grep " connected" | cut -d" " -f1)
monarray=($monitors) monarray=($monitors)
for name in ${names[@]}; do for name in ${names[@]}; do
MONITOR=${monarray[1]} polybar -q --reload ${name} & MONITOR=${monarray[0]} polybar -q --reload ${name} &
done done
else else
polybar --reload ${name} & polybar --reload ${name} &
fi fi