14 lines
313 B
Bash
14 lines
313 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
names=("chostybottombar" "chostytopbar")
|
||
|
pkill polybar
|
||
|
if type "xrandr"; then
|
||
|
for monitor in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||
|
for name in ${names[@]}; do
|
||
|
MONITOR=${monitor} polybar -q --reload ${name}&
|
||
|
done
|
||
|
done
|
||
|
else
|
||
|
polybar --reload ${name} &
|
||
|
fi
|