diff options
Diffstat (limited to '')
| -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 |
