From a7579a9f7cc19c29db45f00d66f47777a643d999 Mon Sep 17 00:00:00 2001 From: Salad Date: Sun, 7 Jun 2020 16:33:49 +0200 Subject: polybar fix --- bspwm/launch.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bspwm/launch.sh (limited to 'bspwm/launch.sh') diff --git a/bspwm/launch.sh b/bspwm/launch.sh new file mode 100755 index 0000000..822de9c --- /dev/null +++ b/bspwm/launch.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# Terminate already running bar instances +killall -q polybar +# If all your bars have ipc enabled, you can also use +# polybar-msg cmd quit + +# Launch bar1 and bar2 +#echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log +#polybar example >>/tmp/polybar1.log 2>&1 & +for m in $(polybar --list-monitors | cut -d":" -f1); do + MONITOR=$m polybar --reload example & +done + +echo "Bars launched..." -- cgit v1.2.3