From 3148f6a3ba3fe491ba661dea368a3c574e6845b4 Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Tue, 13 Sep 2022 08:51:41 +0200 Subject: polybar: nicer launch script --- .local/bin/polybar-launch | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/polybar-launch b/.local/bin/polybar-launch index 952950d..7dfde7a 100755 --- a/.local/bin/polybar-launch +++ b/.local/bin/polybar-launch @@ -1,7 +1,12 @@ -#!/bin/bash +#!/bin/sh -killall -q polybar +polybar-msg cmd quit for m in $(polybar --list-monitors | cut -d":" -f1); do - MONITOR=$m polybar --reload bar1 & + MONITOR=$m + LOG_FILE="/tmp/polybar.$m.log" + echo "---" >> $LOG_FILE + polybar bar1 >> $LOG_FILE 2>&1 & disown done + +echo "Bars launched..." -- cgit v1.2.3-70-g09d2