Commit 155c18e2 authored by Dylan Araps's avatar Dylan Araps

Merge pull request #107 from dylanaraps/battery

Battery: Added support for NetBSD
parents b7ba6939 61f6255d
# Fetch 1.4
### Info
**Battery**<br \>
- Added support for NetBSD
...@@ -1389,6 +1389,11 @@ getbattery () { ...@@ -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
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment