dotfiles/.config/polybar/launch.sh

16 lines
274 B
Bash
Raw Normal View History

2021-04-15 22:45:15 +00:00
#!/usr/bin/env sh
# stolen from Arch wiki
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch polybar
polybar top &
echo "Polybar launched..."