From 3b701b74f2c2cdbc4d58d8010f62dd2e45a01fce Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 27 Nov 2019 08:13:58 -0500 Subject: polybar launch moved to bin --- .local/bin/launch_polybar | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .local/bin/launch_polybar (limited to '.local/bin/launch_polybar') diff --git a/.local/bin/launch_polybar b/.local/bin/launch_polybar new file mode 100755 index 0000000..ea383cc --- /dev/null +++ b/.local/bin/launch_polybar @@ -0,0 +1,12 @@ +#!/bin/bash +#!/usr/bin/env sh + +# Terminate already running bar instances +killall -q polybar + +# Wait until the processes have been shut down +while pgrep -x polybar >/dev/null; do sleep 1; done + +for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar example -c ~/.config/polybar/config & done + +echo "Bars launched..." -- cgit v1.3.1