I want to have Conky display the time using words and not numbers.
What I want to do is more or less how the Pebble Watch looks (Red watch).

Like in the image, even if only the time and not the date can be shown.
Is this possible?
|
I want to have Conky display the time using words and not numbers. What I want to do is more or less how the Pebble Watch looks (Red watch).
Like in the image, even if only the time and not the date can be shown. Is this possible? |
|||||
|
Lua scripting solutionThis is indeed possible using Lua scripting. You can use the script below (the number conversion is taken from rosettacode.org). The script can do a boring option, which will translate 12:45 to "twelve forty-five", and an awesome option which will translate it to "a quarter to one". It also does a Uri Herrera option which does the hour bold ;) Also it automatically refreshes, when the time changes.
Now save it somewhere, for the purpose of this question assume we save it as Now edit your
this loads the script so we can access the functions. Then, at the appropriate place below
This will result in
If you want the seconds, this shouldn't be too hard to add yourself. |
||||
|
|
|
Yes, it's possible, but only through Lua scripting. You'll need a script that takes in numbers and outputs words. A lot of frameworks like Django have this feature, but you might be on your own unless there's an equivalent Lua library for it:
You may just simply want to write a Python script which leverages Django for the translation using its templating language. |
|||||||||
|
|
Couldn't you create a symbol-font which consists of images of the written word for every numeral? Than you should just have to choose this font (if possible) for the display of time. |
|||||
|
|
you can write a python script for this using Basically what it does is:
a trivial example is what I did here:
Now to make this rendered by conky, create a directory inside your conky config directory e.g.
You can change the formatting of time and include the date too, if you want. For formatting options have a look at this page. then open the conky config file
What this line does is, it execute the script file every 30 seconds and update the output on conky window. Of course you can freely place the script files in any directory but make sure the |
|||||
|