From 61f6255dcb57a2a91e01df30ad4a69ba941e699b Mon Sep 17 00:00:00 2001 From: dylan Date: Sat, 27 Feb 2016 20:25:39 +1100 Subject: [PATCH] Battery: Added support for NetBSD --- 1.4.md | 6 ++++++ fetch | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 1.4.md diff --git a/1.4.md b/1.4.md new file mode 100644 index 00000000..e9b58f67 --- /dev/null +++ b/1.4.md @@ -0,0 +1,6 @@ +# Fetch 1.4 + +### Info + +**Battery**
+- Added support for NetBSD diff --git a/fetch b/fetch index e880eefd..0dc12799 100755 --- a/fetch +++ b/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 ;;