Battery: Added support for NetBSD
This commit is contained in:
parent
b7ba69397c
commit
61f6255dcb
2 changed files with 11 additions and 0 deletions
6
1.4.md
Normal file
6
1.4.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Fetch 1.4
|
||||
|
||||
### Info
|
||||
|
||||
**Battery**<br \>
|
||||
- Added support for NetBSD
|
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…
Reference in a new issue