Description: TheMinuteClock Description Think of time in minutes and get more done!
Features Clock display: - seconds of each minute (text, arc, outer tick) - minute of the day (text, hands) - minute of the week (outer tick) - minute of the month (outer tick) - minute of the year (outer tick)
Mini circular displays: - CPU - Used Physical Memory, - Used Storage - Upload Speed (KB/s) - Download Speed (KB/s)
Modifiable Variables - Text font, size, color - Arc size, color - Tick size, color - And many other parameters
Installation Notes 1. Install the HOOG0553.TTF font by placing it in your $HOME/.fonts folder. 2. Place .conkyrc and cups_n_saucers.lua in your $HOME folder and run conky.
See cups_n_saucers_explanation.txt for a brief explanation of user-modifiable settings in cups_n_saucers.lua
- v1.0 Original release (2013-01-10) - v1.1 Cleaned up user settings code (2013-01-11) - v1.2 Fixed calculation error for minute of the month (2013-01-12)
... could you gide me a litte bit
-- this part seems is not working
<indent>
elseif data['name'] == 'minute_of_week' then
str = string.format('${time %s}', data['arg'])
str = conky_parse(str)
local valuedays = tonumber(str:sub(0,1))
local valuehours = tonumber(str:sub(3,4))
local valuemins = tonumber(str:sub(6,7))
value = valuedays + valuehours/24 + valuemins/1440
elseif data['name'] == 'minute_of_month' then
str = string.format('${time %s}', data['arg'])
str = conky_parse(str)
local valuedays = tonumber(str:sub(0,2))
local valuehours = tonumber(str:sub(4,6))
local valuemins = tonumber(str:sub(7,8))
-- value = valuedays + valuehours/24 + valuemins/1440
elseif data['name'] == 'minute_of_year' then
str = string.format('${time %s}', data['arg'])
str = conky_parse(str)
local valuedays = tonumber(str:sub(0,3))
local valuehours = tonumber(str:sub(5,7))
local valuemins = tonumber(str:sub(8,9))
-- value = valuedays + valuehours/24 + valuemins/1440
else
str = string.format('${%s %s}',data['name'], data['arg'])
str = conky_parse(str)
value = tonumber(str)
end
if value == nil then
value = 0
end
draw_coffee_table(display, data, value)
</indent>
Ratings & Comments
2 Comments
... could you gide me a litte bit -- this part seems is not working <indent> elseif data['name'] == 'minute_of_week' then str = string.format('${time %s}', data['arg']) str = conky_parse(str) local valuedays = tonumber(str:sub(0,1)) local valuehours = tonumber(str:sub(3,4)) local valuemins = tonumber(str:sub(6,7)) value = valuedays + valuehours/24 + valuemins/1440 elseif data['name'] == 'minute_of_month' then str = string.format('${time %s}', data['arg']) str = conky_parse(str) local valuedays = tonumber(str:sub(0,2)) local valuehours = tonumber(str:sub(4,6)) local valuemins = tonumber(str:sub(7,8)) -- value = valuedays + valuehours/24 + valuemins/1440 elseif data['name'] == 'minute_of_year' then str = string.format('${time %s}', data['arg']) str = conky_parse(str) local valuedays = tonumber(str:sub(0,3)) local valuehours = tonumber(str:sub(5,7)) local valuemins = tonumber(str:sub(8,9)) -- value = valuedays + valuehours/24 + valuemins/1440 else str = string.format('${%s %s}',data['name'], data['arg']) str = conky_parse(str) value = tonumber(str) end if value == nil then value = 0 end draw_coffee_table(display, data, value) </indent>
Looks good. Glad you could understand my 'cups n saucers' lua script!