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

polybar-msg cmd quit

for m in $(polybar --list-monitors | cut -d":" -f1); do
    MONITOR=$m 
    LOG_FILE="/tmp/polybar.$m.log"
    echo "---" >> $LOG_FILE
    polybar bar1 >> $LOG_FILE 2>&1 & disown
done

echo "Bars launched..."