You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/bin/polybar-launch.sh

15 lines
377 B
Bash

2 years ago
#! /bin/bash
# kills any polybar currently on
killall -q polybar
# wait for termination
while pgrep -x polybar >/dev/null; do sleep 1; done
2 years ago
# loads polybar one every monitor
if type "xrandr"; then
for monitor in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$monitor polybar --reload main-bar &
done
else
polybar --reload main-bar &
fi