update sys info widget and move to main scripts
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
-- name = "System info"
|
-- name = "System info"
|
||||||
|
-- description = "Device information in real time"
|
||||||
|
-- type = "widget"
|
||||||
|
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
|
||||||
|
-- version = "1.0"
|
||||||
|
|
||||||
ticks = -1
|
ticks = -1
|
||||||
|
|
||||||
@@ -24,6 +28,8 @@ function stringify_table(tab)
|
|||||||
table.insert(new_tab, capitalize(k):replace("_", " ")..": "..tostring(v))
|
table.insert(new_tab, capitalize(k):replace("_", " ")..": "..tostring(v))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
table.sort(new_tab)
|
||||||
|
|
||||||
return new_tab
|
return new_tab
|
||||||
end
|
end
|
||||||
|
|
||||||
Reference in New Issue
Block a user