X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/f17dab83cc635d13cac4b35934597665a47ce130..ef85d5638f0cc96fc892a980f281f17c1f740ec1:/temp.md?ds=sidebyside diff --git a/temp.md b/temp.md index 60d03e2..f7315b6 100644 --- a/temp.md +++ b/temp.md @@ -1,4 +1,8 @@ -Show the current core temperature in a textbox. Reads from `/sys/class/thermal`, so value is expressed in Celsius. +[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets) + +Show the current core temperature in a textbox. + +Reads from `/sys/class/thermal`, so value is expressed in Celsius. mytemp = lain.widgets.temp() @@ -6,8 +10,7 @@ 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 +`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). \ No newline at end of file