Description: This is a python script to display a binary clock with conky. The last preview is an example of how to read the time. You must have the font "Pizza Dude Bullets" installed which is included in the archive along with a sample conkyrc. The clock can be either horizontal or vertical, 12 hour or 24 hour, and the column numbers can be turned on or off. It can even display different timezones. Make sure to read the help.
Options: --version show program's version number and exit -h, --help show this help message and exit -v, --vertical Output a vertical clock -o OFFSET, --offset=OFFSET Use a different time zone by specifying the offset -m, --military Output a 24-hour clock -c, --columns Display column numbers -f FONT, --font=FONT Specify a font for the column numbers. Default is Sans if not specified
[/QUOTE]
I'm sure there's probably some bugs in it. If you find any, let me know.Last changelog:
I don't know if it is a bug or not, but it didn't work well. With the script the conky displayed repeated, like a black shadow behind every character; besides, some pizza fonts appeared on top, when the clock was on bottom, and the clock itself wasn't right either, some characters were on top of others, some on the side... it was a mess.
But the idea is really good.
Ok, it's strange, but before the shades were set to yes and weren't displayed, so I changed it to no, and now looks better and those characters on top are no longer. But there's still a problem of alignment, as you can see in the screenshot.
http://img255.imageshack.us/img255/4880/pantallazo2xp7.png
Again, nice work with the nerdy clock.
Thanks.
That seems to be a problem with trying to use the clock in an existing conkyrc. You might try adding a ${font} tag before the call to the clock, or we can try to add some space to that first line to make it line up. To do that, you'll have to change the line:
Quote:
for g,i in enumerate(horzclock(hours,minutes,seconds)): print cols(columns,g,options.font)+fontpiz + ' '.join(i)
To:
Quote:
for g,i in enumerate(horzclock(hours,minutes,seconds)): print ['',' '][g==0] + cols(columns,g,options.font)+fontpiz + ' '.join(i)
Note that that should still be just one line. You should be able to change the number of spaces in this part, ,' '] until you can get it to line up correctly.
Ratings & Comments
5 Comments
I don't know if it is a bug or not, but it didn't work well. With the script the conky displayed repeated, like a black shadow behind every character; besides, some pizza fonts appeared on top, when the clock was on bottom, and the clock itself wasn't right either, some characters were on top of others, some on the side... it was a mess. But the idea is really good.
Hi lonerocker, Can you post a screenshot so that I can maybe tell what the problem is? Also, you might try changing draw_shades to no.
Ok, it's strange, but before the shades were set to yes and weren't displayed, so I changed it to no, and now looks better and those characters on top are no longer. But there's still a problem of alignment, as you can see in the screenshot. http://img255.imageshack.us/img255/4880/pantallazo2xp7.png Again, nice work with the nerdy clock.
Thanks. That seems to be a problem with trying to use the clock in an existing conkyrc. You might try adding a ${font} tag before the call to the clock, or we can try to add some space to that first line to make it line up. To do that, you'll have to change the line: Quote:
for g,i in enumerate(horzclock(hours,minutes,seconds)): print cols(columns,g,options.font)+fontpiz + ' '.join(i)
To:
Quote:
for g,i in enumerate(horzclock(hours,minutes,seconds)): print ['',' '][g==0] + cols(columns,g,options.font)+fontpiz + ' '.join(i)
Note that that should still be just one line. You should be able to change the number of spaces in this part, ,' '] until you can get it to line up correctly.
the script had this line, not exactly like the one you say Quote:for g,i in enumerate(horzclock(hours,minutes,seconds)): print '${offset %s}' % hoffset,cols(columns,g,options.font), fontpiz + ' '.join(i)
when replaced, it got all aligned.