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 --- .config/polybar/launch.sh | 16 ---------------- .local/bin/launch_polybar | 12 ++++++++++++ 2 files changed, 12 insertions(+), 16 deletions(-) delete mode 100755 .config/polybar/launch.sh create mode 100755 .local/bin/launch_polybar diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh deleted file mode 100755 index baf3f57..0000000 --- a/.config/polybar/launch.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/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 - -# Launch bar1 and bar2 -#polybar example & - -for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar example -c ~/.config/polybar/config & done -feh --bg-scale ~/.config/wall.png - -echo "Bars launched..." 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