From 61c59a6c1f356ed23983ad8625d199e4338f1f4d Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 18 Aug 2025 12:29:59 +0200 Subject: Make status bar shorter --- status-linux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'status-linux') diff --git a/status-linux b/status-linux index 8d507c5..d881228 100755 --- a/status-linux +++ b/status-linux @@ -11,10 +11,10 @@ sep=${1:-" | "} time=$(date +"%H:%M") -date=$(date +"%d %B %Y, %A") +date=$(date +"%a %d %b") if [ "$(pulsemixer --get-mute)" -eq 1 ]; then - volume="Audio muted" + volume="Muted" else volume="Vol: $(pulsemixer --get-volume | awk '{print $1}')%" fi @@ -35,11 +35,11 @@ fi #network="Network: $nwclean" # Thank you iwctl for saving us from this dreadful existence -network="WiFi: $(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" +network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" noticount=$(notify show | wc -l) printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time" [ "$noticount" = "1" ] && printf '%s' "$sep$(notify show)" -[ "$noticount" -gt "1" ] && printf '%s' "${sep}Unread items: $noticount" +[ "$noticount" -gt "1" ] && printf '%s' "${sep} [$noticount]" printf '\n' -- cgit v1.3