aboutsummaryrefslogtreecommitdiff
path: root/status-linux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xstatus-linux8
1 files changed, 4 insertions, 4 deletions
diff --git a/status-linux b/status-linux
index 8d507c5..d881228 100755
--- a/status-linux
+++ b/status-linux
@@ -11,10 +11,10 @@
11sep=${1:-" | "} 11sep=${1:-" | "}
12 12
13time=$(date +"%H:%M") 13time=$(date +"%H:%M")
14date=$(date +"%d %B %Y, %A") 14date=$(date +"%a %d %b")
15 15
16if [ "$(pulsemixer --get-mute)" -eq 1 ]; then 16if [ "$(pulsemixer --get-mute)" -eq 1 ]; then
17 volume="Audio muted" 17 volume="Muted"
18else 18else
19 volume="Vol: $(pulsemixer --get-volume | awk '{print $1}')%" 19 volume="Vol: $(pulsemixer --get-volume | awk '{print $1}')%"
20fi 20fi
@@ -35,11 +35,11 @@ fi
35#network="Network: $nwclean" 35#network="Network: $nwclean"
36 36
37# Thank you iwctl for saving us from this dreadful existence 37# Thank you iwctl for saving us from this dreadful existence
38network="WiFi: $(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" 38network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')"
39 39
40noticount=$(notify show | wc -l) 40noticount=$(notify show | wc -l)
41 41
42printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time" 42printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time"
43[ "$noticount" = "1" ] && printf '%s' "$sep$(notify show)" 43[ "$noticount" = "1" ] && printf '%s' "$sep$(notify show)"
44[ "$noticount" -gt "1" ] && printf '%s' "${sep}Unread items: $noticount" 44[ "$noticount" -gt "1" ] && printf '%s' "${sep} [$noticount]"
45printf '\n' 45printf '\n'

Generated with cgit - Back to sebastiano.tronto.net