aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstatus4
1 files changed, 2 insertions, 2 deletions
diff --git a/status b/status
index c4fffa1..2b6a8e2 100755
--- a/status
+++ b/status
@@ -16,12 +16,12 @@ date=$(date +"%d %B %Y, %A")
16if [ "$(pulsemixer --get-mute)" -eq 1 ]; then 16if [ "$(pulsemixer --get-mute)" -eq 1 ]; then
17 volume="Audio muted" 17 volume="Audio muted"
18else 18else
19 volume="Volume: $(pulsemixer --get-volume | awk '{print $1}')%%" 19 volume="Volume: $(pulsemixer --get-volume | awk '{print $1}')%"
20fi 20fi
21 21
22bat="/sys/class/power_supply/BAT0" 22bat="/sys/class/power_supply/BAT0"
23if [ -d $bat ]; then 23if [ -d $bat ]; then
24 battery="Battery: $(cat $bat/capacity)%% $(cat $bat/status)" 24 battery="Battery: $(cat $bat/capacity)% $(cat $bat/status)"
25else 25else
26 battery="No battery" 26 battery="No battery"
27fi 27fi

Generated with cgit - Back to sebastiano.tronto.net