blob: a340d93cdfdaa89372608592ce7baa1c536851f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
killall polybar > /dev/null 2>&1
while read -r MON RES PRIM; do
if [ -n "$PRIM" ]; then
BAR=main
else
BAR=secondary
fi
MONITOR=$MON polybar --reload $BAR &
done <<< "$(polybar --list-monitors | tr -d ':')"
|