summaryrefslogtreecommitdiff
path: root/launch_polybar.sh
blob: b2c874526c66e2e6e1ca109d4f2b8b38c08b0ba9 (plain)
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