aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-06-20 23:10:37 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-06-20 23:10:37 +0200
commitd120ebe6b988f7a1a0bbf79010cfd8a27960d9f5 (patch)
treecfc76b18cebdf010fbb7d5bbbe56c10955bd9c2b
parent581865ee0c8b8aea872f053d804a41fb5f416b17 (diff)
downloadscripts-d120ebe6b988f7a1a0bbf79010cfd8a27960d9f5.tar.gz
scripts-d120ebe6b988f7a1a0bbf79010cfd8a27960d9f5.zip
Fixed double %
-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