Created temp (markdown)
This commit is contained in:
parent
3e465b3876
commit
f17dab83cc
1 changed files with 13 additions and 0 deletions
13
temp.md
Normal file
13
temp.md
Normal file
|
@ -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 "
|
Loading…
Add table
Reference in a new issue