Use first screen for polybar
parent
f5ca30ba7c
commit
7586f3c64e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue