X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/5c1a24baba7f8bb1192a6e4f762dd2271a81580c..bcd63c82008752f00d732ac7ff70ebde01829bd6:/temp.md diff --git a/temp.md b/temp.md index 92d7d06..91f3031 100644 --- a/temp.md +++ b/temp.md @@ -1,17 +1,20 @@ [<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets) -Show the current core temperature in a textbox. +Shows 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: +### input table 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 +`timeout` | Refresh timeout seconds | int | 5 +`settings` | User settings | function | empty function + +`settings` can use the string `coretemp_now`, which means current core temperature, expressed in Celsius (linux standard). + +### output + +A textbox. \ No newline at end of file