Merge pull request #71 from Syphdias/symlink-batteries

battery segment for symlinkers
pull/73/head
Roman Perepelitsa 6 years ago committed by GitHub
commit 3ce1099183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -494,7 +494,7 @@ prompt_battery() {
;; ;;
Linux|Android) Linux|Android)
local -a bats=( /sys/class/power_supply/(BAT*|battery)(FN) ) local -a bats=( /sys/class/power_supply/(BAT*|battery)/(FN) )
(( $#bats )) || return (( $#bats )) || return
local -i energy_now energy_full power_now local -i energy_now energy_full power_now

Loading…
Cancel
Save