reorganization

This commit is contained in:
Evgeny
2021-08-06 14:43:34 +03:00
parent 372ec8578d
commit 1e9b33eaea
52 changed files with 1044 additions and 20 deletions

View File

@@ -0,0 +1,12 @@
-- name = "Year progress"
-- description = "Shows current year progress"
-- type = "widget"
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
function on_resume()
local year_days = 365
local current_day = os.date("*t").yday
local percent = math.floor(current_day / (year_days / 100))
ui:show_progress_bar("Year progress: "..percent.."%", current_day, year_days)
end