diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-09-02 07:28:29 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-09-02 07:28:29 +0200 |
| commit | d24b871c47826eace3d7f6c642aaffdd01fe6ebe (patch) | |
| tree | 996981952eb80a22ecefa483277045a0fa11698f /status-linux | |
| parent | 61c59a6c1f356ed23983ad8625d199e4338f1f4d (diff) | |
| download | scripts-d24b871c47826eace3d7f6c642aaffdd01fe6ebe.tar.gz scripts-d24b871c47826eace3d7f6c642aaffdd01fe6ebe.zip | |
Some small changes
Diffstat (limited to 'status-linux')
| -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' |
