[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Sun, 5 Dec 2010 21:59:36 +0000 (UTC)

changeset: 649:8cf093c2a3c1
tag: tip
user: Jacob Todd <jaketodd422_AT_gmail.com>
date: Sun Dec 05 16:59:31 2010 -0500
files: dwm.suckless.org/scripts/simple_monitors.md
description:
add simple monitors to dwm scripts.


diff -r dccb5acdf1ec -r 8cf093c2a3c1 dwm.suckless.org/scripts/simple_monitors.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/scripts/simple_monitors.md Sun Dec 05 16:59:31 2010 -0500
_AT_@ -0,0 +1,33 @@
+Simple Monitors
+===
+
+Description
+---
+
+These are just very simple monitors for the dwm status bar.
+
+Battery
+---
+
+You're battery may be called something different, so check /proc/acpi for it's name.
+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)%
+
+hoc comes from plan9port or 9base.
+
+Ram used
+---
+
+Return the amount of ram used, in megabytes.
+
+ $(free -m | grep cache\: | awk '{ print $3 }')M
+
+Temperature
+---
+
+Returns the temperature of the cpu, in celcius.
+
+ $(awk '{ print $2 }' /proc/acpi/thermal_zone/THM0/temperature)C
+
+I told you they were simple.
Received on Sun Dec 05 2010 - 22:59:36 CET

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:32 CEST