diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-06-20 23:10:37 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-06-20 23:10:37 +0200 |
| commit | d120ebe6b988f7a1a0bbf79010cfd8a27960d9f5 (patch) | |
| tree | cfc76b18cebdf010fbb7d5bbbe56c10955bd9c2b /status | |
| parent | 581865ee0c8b8aea872f053d804a41fb5f416b17 (diff) | |
| download | scripts-d120ebe6b988f7a1a0bbf79010cfd8a27960d9f5.tar.gz scripts-d120ebe6b988f7a1a0bbf79010cfd8a27960d9f5.zip | |
Fixed double %
Diffstat (limited to 'status')
| -rwxr-xr-x | status | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -16,12 +16,12 @@ date=$(date +"%d %B %Y, %A") | |||
| 16 | if [ "$(pulsemixer --get-mute)" -eq 1 ]; then | 16 | if [ "$(pulsemixer --get-mute)" -eq 1 ]; then |
| 17 | volume="Audio muted" | 17 | volume="Audio muted" |
| 18 | else | 18 | else |
| 19 | volume="Volume: $(pulsemixer --get-volume | awk '{print $1}')%%" | 19 | volume="Volume: $(pulsemixer --get-volume | awk '{print $1}')%" |
| 20 | fi | 20 | fi |
| 21 | 21 | ||
| 22 | bat="/sys/class/power_supply/BAT0" | 22 | bat="/sys/class/power_supply/BAT0" |
| 23 | if [ -d $bat ]; then | 23 | if [ -d $bat ]; then |
| 24 | battery="Battery: $(cat $bat/capacity)%% $(cat $bat/status)" | 24 | battery="Battery: $(cat $bat/capacity)% $(cat $bat/status)" |
| 25 | else | 25 | else |
| 26 | battery="No battery" | 26 | battery="No battery" |
| 27 | fi | 27 | fi |
