2019-07-20 12:14:25 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
killall polybar
|
|
|
|
|
|
|
|
if type "xrandr"; then
|
|
|
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|
|
|
MONITOR=$m polybar --reload bar1 &
|
2019-11-04 08:36:43 +01:00
|
|
|
#MONITOR=$m polybar --reload touchbar &
|
2019-07-20 12:14:25 +02:00
|
|
|
done
|
|
|
|
else
|
|
|
|
polybar --reload bar1 &
|
2019-11-04 08:36:43 +01:00
|
|
|
#polybar --reload touchbar &
|
2019-07-20 12:14:25 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
polybar-msg cmd hide
|