From 391a0adc5ad597835d6325ef87717fd27177c274 Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Mon, 12 Sep 2022 21:32:09 +0200 Subject: polybar: nicer launch script --- .local/bin/polybar-launch | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.local/bin/polybar-launch b/.local/bin/polybar-launch index 6e390a7..39e8936 100755 --- a/.local/bin/polybar-launch +++ b/.local/bin/polybar-launch @@ -1,5 +1,9 @@ #!/bin/sh -killall -q polybar -polybar bar1 -r 2>&1 | tee -a /tmp/polybar1.log & disown -polybar bar2 -r 2>&1 | tee -a /tmp/polybar2.log & disown +polybar-msg cmd quit + +echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log +polybar bar1 >> /tmp/polybar1.log 2>&1 & disown +polybar bar2 >> /tmp/polybar2.log 2>&1 & disown + +echo "Bars launched..." -- cgit v1.2.3-70-g09d2