Update battery.sh
This commit is contained in:
parent
016d3bed91
commit
1e97103166
|
@ -12,6 +12,6 @@ case "$(cat "$battery/status" 2>&1)" in
|
|||
esac
|
||||
|
||||
capacity="$(cat "$battery/capacity" 2>&1)"
|
||||
capacity=$(echo "$capacity/88*100" | bc -l)
|
||||
capacity=$(echo "$capacity/83*100" | bc -l)
|
||||
|
||||
printf "%s %.0f%%" "$status" "$capacity"
|
||||
|
|
Loading…
Reference in New Issue