From 205a7a03bf449924a667e39616aeca4f13faf865 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Sun, 16 Apr 2023 15:40:39 -0500 Subject: fix(bin): remove test for somebar FIFO in status Now that status.sh is managed with superd, we don't have to worry about making sure the script exits after somebar does. --- bin/status.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/status.sh b/bin/status.sh index 32794ea..aead5aa 100755 --- a/bin/status.sh +++ b/bin/status.sh @@ -2,7 +2,7 @@ set -eu -pulseaudio() { +volume() { volume=$(pactl get-sink-volume @DEFAULT_SINK@ \ | awk 'match($0, /\d+%/) { print substr($0, RSTART, RLENGTH-1) }') if [ "$volume" -eq 0 ]; then @@ -46,11 +46,7 @@ clock() { echo " $(date '+%b %d %H:%M')" } -until [ -e "$XDG_RUNTIME_DIR/somebar-0" ]; do - true -done - -while [ -e "$XDG_RUNTIME_DIR/somebar-0" ]; do - somebar -c status "$(pulseaudio) | $(network) | $(brightness) | $(battery) | $(clock)" || true +while true; do + somebar -c status "$(volume) | $(network) | $(brightness) | $(battery) | $(clock)" || true sleep 0.2 done -- cgit v1.2.3