From 0e3b88ff632b019c49b535c80fdbebad9cd87182 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 23 Jan 2022 17:56:01 -0800 Subject: [PATCH] + Polybar launch script --- launch_polybar.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 launch_polybar.sh 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