dotfiles/.config/polybar/launch.sh

18 lines
312 B
Bash
Raw Normal View History

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 &
MONITOR=$m polybar --reload touchbar &
done
else
polybar --reload bar1 &
polybar --reload touchbar &
fi
sleep 1
polybar-msg cmd hide