summaryrefslogtreecommitdiff
path: root/.config/polybar/launch.sh
blob: be7d6de505a3974c988703a0a6f1ce2bd1cb1c34 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

killall -q polybar

while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done

#
polybar main &

if [[ $(xrandr -q | grep 'HDMI-1-0 connected') ]]; then
    polybar second &
fi