[wiki] [sites] [dwm] Add another example for battery status || Klemens Nanni

From: <git_AT_suckless.org>
Date: Wed, 17 Feb 2016 05:15:56 +0100

commit 5efc012923e28e3d4ec9489cf65238233f1a0237
Author: Klemens Nanni <kl3_AT_posteo.org>
Date: Wed Feb 17 05:14:05 2016 +0100

    [dwm] Add another example for battery status

diff --git a/dwm.suckless.org/scripts/simple_monitors.md b/dwm.suckless.org/scripts/simple_monitors.md
index 0615483..fc4ed6f 100644
--- a/dwm.suckless.org/scripts/simple_monitors.md
+++ b/dwm.suckless.org/scripts/simple_monitors.md
_AT_@ -12,10 +12,16 @@ Battery
 Your battery may be called something different, so check /proc/acpi for its name. Also, change 89000 to whatever the capacity is for your battery.
 This returns the remaining battery power as a percentage.
 
- $(echo $(awk '/rem/ { print $3/89000 }' /proc/acpi/battery/BAT0/state| hoc| cut -c3,4)%
+ $(echo $(awk '/rem/ { print $3/89000 }' /proc/acpi/battery/BAT0/state| hoc| cut -c3,4)%
 
 hoc comes from plan9port or 9base.
 
+Depending on your system, you can also use
+
+ cat /sys/class/power_supply/BAT0/capacity
+
+to get your battery status in percentage.
+
 Ram used
 ---
 
Received on Wed Feb 17 2016 - 05:15:56 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 17 2016 - 05:24:12 CET