diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-18 12:29:59 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-18 12:42:10 +0200 |
| commit | 61c59a6c1f356ed23983ad8625d199e4338f1f4d (patch) | |
| tree | e68e6622f7d098e24e010e9d950ae956f851222f /status-linux | |
| parent | af472eacc1911a37b9db916c4086d817e5cf207c (diff) | |
| download | scripts-61c59a6c1f356ed23983ad8625d199e4338f1f4d.tar.gz scripts-61c59a6c1f356ed23983ad8625d199e4338f1f4d.zip | |
Make status bar shorter
Diffstat (limited to '')
| -rwxr-xr-x | status-linux | 8 |
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 @@ | |||
| 11 | sep=${1:-" | "} | 11 | sep=${1:-" | "} |
| 12 | 12 | ||
| 13 | time=$(date +"%H:%M") | 13 | time=$(date +"%H:%M") |
| 14 | date=$(date +"%d %B %Y, %A") | 14 | date=$(date +"%a %d %b") |
| 15 | 15 | ||
| 16 | if [ "$(pulsemixer --get-mute)" -eq 1 ]; then | 16 | if [ "$(pulsemixer --get-mute)" -eq 1 ]; then |
| 17 | volume="Audio muted" | 17 | volume="Muted" |
| 18 | else | 18 | else |
| 19 | volume="Vol: $(pulsemixer --get-volume | awk '{print $1}')%" | 19 | volume="Vol: $(pulsemixer --get-volume | awk '{print $1}')%" |
| 20 | fi | 20 | fi |
| @@ -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 |
| 38 | network="WiFi: $(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" | 38 | network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" |
| 39 | 39 | ||
| 40 | noticount=$(notify show | wc -l) | 40 | noticount=$(notify show | wc -l) |
| 41 | 41 | ||
| 42 | printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time" | 42 | printf '%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]" |
| 45 | printf '\n' | 45 | printf '\n' |
