[wiki] [sites] wiki updated
changeset: 681:c5b0d9f4737a
tag: tip
parent: 678:b6288fd830c1
user: sk
date: Thu Jan 27 08:50:38 2011 +0100
files: dwm.suckless.org/scripts/simple_monitors.md
description:
try simplify somewhat
diff -r b6288fd830c1 -r c5b0d9f4737a dwm.suckless.org/scripts/simple_monitors.md
--- a/dwm.suckless.org/scripts/simple_monitors.md Mon Jan 24 18:34:02 2011 +0100
+++ b/dwm.suckless.org/scripts/simple_monitors.md Thu Jan 27 08:50:38 2011 +0100
_AT_@ -12,7 +12,7 @@
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 $(cat /proc/acpi/battery/BAT0/state| grep remaining| awk '{print $3}') / 89000| 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.
_AT_@ -21,7 +21,7 @@
Return the amount of ram used, in megabytes.
- $(free -m | grep cache\: | awk '{ print $3 }')M
+ $(free -m |awk '/cache:/ { print $3"M" })
Temperature
---
Received on Thu Jan 27 2011 - 08:52:06 CET
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:37 CEST