[wiki] [sites] wiki updated
changeset: 650:a0628ba5c9bd
tag: tip
user: Jacob Todd <jaketodd422_AT_gmail.com>
date: Mon Dec 06 16:06:34 2010 -0500
files: dwm.suckless.org/scripts/simple_monitors.md
description:
change battery capacity, add comment about it to simpl monitors
diff -r 8cf093c2a3c1 -r a0628ba5c9bd dwm.suckless.org/scripts/simple_monitors.md
--- a/dwm.suckless.org/scripts/simple_monitors.md Sun Dec 05 16:59:31 2010 -0500
+++ b/dwm.suckless.org/scripts/simple_monitors.md Mon Dec 06 16:06:34 2010 -0500
_AT_@ -9,10 +9,10 @@
Battery
---
-You're battery may be called something different, so check /proc/acpi for it's name.
+You're battery may be called something different, so check /proc/acpi for it's name. Also, change 89000 to whatever the capacity is for your battery.
This returns the remaining battery power as a percentage.
- $(echo $(cat /proc/acpi/battery/BAT0/state| grep remaining| awk '{print $3}') / 8900| hoc| cut -c3,4)%
+ $(echo $(cat /proc/acpi/battery/BAT0/state| grep remaining| awk '{print $3}') / 89000| hoc| cut -c3,4)%
hoc comes from plan9port or 9base.
Received on Mon Dec 06 2010 - 22:06:58 CET
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:32 CEST