diff options
author | adam <56338480+adastx@users.noreply.github.com> | 2022-09-13 08:51:41 +0200 |
---|---|---|
committer | adam <56338480+adastx@users.noreply.github.com> | 2022-09-13 08:51:41 +0200 |
commit | 3148f6a3ba3fe491ba661dea368a3c574e6845b4 (patch) | |
tree | c2493654383f6ba4b5805e68b8f72833dc32e87d | |
parent | 9a93a2b8b2de9e245407da876929029bc3016d85 (diff) |
polybar: nicer launch script
-rwxr-xr-x | .local/bin/polybar-launch | 11 |
1 files changed, 8 insertions, 3 deletions
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..." |