Battery: Added support for NetBSD
This commit is contained in:
parent
b7ba69397c
commit
61f6255dcb
|
@ -0,0 +1,6 @@
|
||||||
|
# Fetch 1.4
|
||||||
|
|
||||||
|
### Info
|
||||||
|
|
||||||
|
**Battery**<br \>
|
||||||
|
- Added support for NetBSD
|
5
fetch
5
fetch
|
@ -1389,6 +1389,11 @@ getbattery () {
|
||||||
"FreeBSD"*)
|
"FreeBSD"*)
|
||||||
battery=$(acpiconf -i 0 | awk -F ':\t' '/Remaining capacity/ {print $2}')
|
battery=$(acpiconf -i 0 | awk -F ':\t' '/Remaining capacity/ {print $2}')
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"NetBSD"*)
|
||||||
|
battery=$(envstat | awk '\\(|\\)' '/charge:/ {print $2}')
|
||||||
|
battery="${battery/\.*}%"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Reference in New Issue