summaryrefslogtreecommitdiff
path: root/polybar/launch.sh~
blob: 7490090eaf8495a4c11c58809a4aef4e47483749 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
# Kill any running instances
killall -q polybar
while pgrep -u $UID -x polybar > /dev/null; do sleep 0.1; done

# If you have multiple monitors, launch one bar per output:
# for m in $(polybar --list-monitors | cut -d":" -f1); do
#     MONITOR=$m polybar main &
# done

polybar main 2>&1 | tee -a /tmp/polybar.log & disown