1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh killall polybar if type "xrandr"; then for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do MONITOR=$m polybar --reload $1 & done else polybar --reload $1 & fi