From dc98cba24cb5f1f3e260c49fc61add4a113a1df0 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 19 Jun 2023 08:25:41 +0200 Subject: Update to status (now I use a statusbar) --- status | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'status') diff --git a/status b/status index 7a2825f..10b43f9 100755 --- a/status +++ b/status @@ -10,9 +10,15 @@ sep=${1:-" | "} -time=$(date +"%H:%M:%S") +time=$(date +"%H:%M") date=$(date +"%d %B %Y, %A") +if [ "$(pulsemixer --get-mute)" -eq 1 ]; then + volume="Audio muted" +else + volume="Volume: $(pulsemixer --get-volume | awk '{print $1}')%%" +fi + bat="/sys/class/power_supply/BAT0" if [ -d $bat ]; then battery="Battery: $(cat $bat/capacity)%% $(cat $bat/status)" @@ -28,6 +34,6 @@ network="Network: $(nmcli device status | head -n 2 | tail -n 1 | sed 's/ *$//' events=$(sdep-list past | wc -l) -printf "$time$sep$date$sep$battery$sep$network" +printf "$network$sep$volume$sep$battery$sep$date$sep$time" [ "$events" != "0" ] && printf "$sep$events TODO task(s)" printf "\n" -- cgit v1.3