Kill polybar before launching it
This commit is contained in:
parent
9dc27648c5
commit
b1efee1649
2
bin/bar
2
bin/bar
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
killall polybar
|
||||||
|
|
||||||
if type "xrandr"; then
|
if type "xrandr"; then
|
||||||
for m in $(xrandr --query | grep " connected" |grep "primary" | cut -d" " -f1); do
|
for m in $(xrandr --query | grep " connected" |grep "primary" | cut -d" " -f1); do
|
||||||
MONITOR=$m polybar --reload dwm &
|
MONITOR=$m polybar --reload dwm &
|
||||||
|
Loading…
Reference in New Issue
Block a user