diff options
Diffstat (limited to '')
| -rwxr-xr-x | status-linux | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/status-linux b/status-linux index d881228..4f91dfe 100755 --- a/status-linux +++ b/status-linux | |||
| @@ -16,13 +16,13 @@ date=$(date +"%a %d %b") | |||
| 16 | if [ "$(pulsemixer --get-mute)" -eq 1 ]; then | 16 | if [ "$(pulsemixer --get-mute)" -eq 1 ]; then |
| 17 | volume="Muted" | 17 | volume="Muted" |
| 18 | else | 18 | else |
| 19 | volume="Vol: $(pulsemixer --get-volume | awk '{print $1}')%" | 19 | volume="Vol $(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 | charge_status="$(cat $bat/status | awk '{print substr ($0, 0, 2)}')" | 24 | charge_status="$(cat $bat/status | awk '{print substr ($0, 0, 2)}')" |
| 25 | battery="Bat: $(cat $bat/capacity)% $charge_status" | 25 | battery="Bat $(cat $bat/capacity)% $charge_status" |
| 26 | else | 26 | else |
| 27 | battery="No battery" | 27 | battery="No battery" |
| 28 | fi | 28 | fi |
| @@ -41,5 +41,5 @@ noticount=$(notify show | wc -l) | |||
| 41 | 41 | ||
| 42 | printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time" | 42 | printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time" |
| 43 | [ "$noticount" = "1" ] && printf '%s' "$sep$(notify show)" | 43 | [ "$noticount" = "1" ] && printf '%s' "$sep$(notify show)" |
| 44 | [ "$noticount" -gt "1" ] && printf '%s' "${sep} [$noticount]" | 44 | [ "$noticount" -gt "1" ] && printf '%s' "${sep}[$noticount]" |
| 45 | printf '\n' | 45 | printf '\n' |
