mirror of https://github.com/qpixel/dotfiles.git
20 lines
462 B
Bash
20 lines
462 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Terminate already running bar instances
|
|
killall -q polybar
|
|
# If all your bars have ipc enabled, you can also use
|
|
# polybar-msg cmd quit
|
|
|
|
#echo "---" | tee -a /tmp/polybar1.log
|
|
#polybar example 2>&1 | tee -a /tmp/polybar1.log & disown
|
|
|
|
if type "xrandr"; then
|
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|
MONITOR=$m polybar --reload example &
|
|
done
|
|
else
|
|
polybar --reload example &
|
|
fi
|
|
|
|
echo "Bars launched..."
|