diff --git a/launch_polybar.sh b/launch_polybar.sh new file mode 100644 index 0000000..484e361 --- /dev/null +++ b/launch_polybar.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Kill off previous version of polybar +kill $(pgrep polybar) + +if type 'xrandr'; then + for m in $(xrandr --query | grep ' connected' | cut -d ' ' -f1);do + MONITOR=$m polybar --reload cute & + done +else + polybar --reload cute & +fi