From ea4e1c0124d90f1ac62682ae41b10e5845c16deb Mon Sep 17 00:00:00 2001 From: Jeff Lance Date: Wed, 26 Apr 2023 19:53:57 +0200 Subject: [PATCH] add dir, change launch script and update config --- conf.d/polybar/config | 2 +- conf.d/polybar/scripts/launch.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 conf.d/polybar/scripts/launch.sh diff --git a/conf.d/polybar/config b/conf.d/polybar/config index cbdbab0..f750ffd 100644 --- a/conf.d/polybar/config +++ b/conf.d/polybar/config @@ -42,7 +42,7 @@ alert = #bd2c40 -[bar/saitama] +[bar/main] ;monitor = ${env:MONITOR:HDMI-1} width = 100% height = 27 diff --git a/conf.d/polybar/scripts/launch.sh b/conf.d/polybar/scripts/launch.sh new file mode 100755 index 0000000..3a247ca --- /dev/null +++ b/conf.d/polybar/scripts/launch.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Terminate already running bar instances +# If all your bars have ipc enabled, you can use +polybar-msg cmd quit +# Otherwise you can use the nuclear option: +# killall -q polybar + +# Launch bar1 and bar2 +echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log +polybar main 2>&1 | tee -a /tmp/polybar1.log & disown + +on