From: Luke Bonham Date: Sat, 7 Sep 2013 12:07:01 +0000 (-0700) Subject: Created temp (markdown) X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/f17dab83cc635d13cac4b35934597665a47ce130?hp=3e465b38765d8014a9ced65ef22085f7ea15cc24 Created temp (markdown) --- diff --git a/temp.md b/temp.md new file mode 100644 index 0000000..60d03e2 --- /dev/null +++ b/temp.md @@ -0,0 +1,13 @@ +Show the current core temperature in a textbox. Reads from `/sys/class/thermal`, so value is expressed in Celsius. + + mytemp = lain.widgets.temp() + +The function takes a table as optional argument, which can contain: + +Variable | Meaning | Type | Default +--- | --- | --- | --- +`refresh_timeout` | Refresh timeout seconds | int | 5 +`header` | Text to show before value | string | " Temp " +`header_color` | Header color | string | `beautiful.fg_normal` or "#FFFFFF" +`color` | Value color | string | `beautiful.fg_focus` or "#FFFFFF" +`footer` | Text to show after value | string | "C " \ No newline at end of file