Skip to content

Instantly share code, notes, and snippets.

@apkostka
Created March 15, 2018 19:06
Show Gist options
  • Save apkostka/ca0c561fa834a63ad3565c96308d15bc to your computer and use it in GitHub Desktop.
Save apkostka/ca0c561fa834a63ad3565c96308d15bc to your computer and use it in GitHub Desktop.
# 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