Created
March 15, 2018 19:06
-
-
Save apkostka/ca0c561fa834a63ad3565c96308d15bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic script to kill all old bars and launch new. | |
# Terminate already running bad instances | |
killall -q polybar | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment