[Polybar] Hackish script to get front screen
parent
b8b265b8c2
commit
8d0d94a854
.config/polybar/scripts
|
@ -3,7 +3,7 @@ source ~/.config/polybar/.env
|
||||||
names=("chostybottombar" "chostytopbar")
|
names=("chostybottombar" "chostytopbar")
|
||||||
killall -q polybar
|
killall -q polybar
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
monitor=$(xrandr --query | grep " connected" | grep "primary" | cut -d" " -f1)
|
monitor=$(xrandr --query | grep " connected" | cut -d" " -f1 | head -1)
|
||||||
for name in ${names[@]}; do
|
for name in ${names[@]}; do
|
||||||
MONITOR=${monitor} polybar -q --reload ${name} &
|
MONITOR=${monitor} polybar -q --reload ${name} &
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue