Battery: Added support for NetBSD
This commit is contained in:
parent
b7ba69397c
commit
61f6255dcb
2 changed files with 11 additions and 0 deletions
5
fetch
5
fetch
|
@ -1389,6 +1389,11 @@ getbattery () {
|
|||
"FreeBSD"*)
|
||||
battery=$(acpiconf -i 0 | awk -F ':\t' '/Remaining capacity/ {print $2}')
|
||||
;;
|
||||
|
||||
"NetBSD"*)
|
||||
battery=$(envstat | awk '\\(|\\)' '/charge:/ {print $2}')
|
||||
battery="${battery/\.*}%"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue