An analog clock for the console

Like I mentioned a few days ago, I have an ever-lengthening list of console applications (mostly console applications, in truth) I want to try out in the next few days, once my holiday break starts. Some of the smaller ones I’ve already started tinkering with, and I have a new screensaver now, as a result.

Meet clockywock, which stands as a sister program to my uber-favorite tty-clock.

It looks innocent enough, considering that it does a fair job showing an easily readable analog clock on the console. The animation is smooth at 550Mhz against the framebuffer, and while it’s a bit touchy distinguishing between the hands at particular times, it’s visible at a distance and scales itself to whatever space you give it. It’ll run in screen, in a corner of screen or as a blanker for screen, if you tell it too.

Configuration is easy too — just press a random key, and you get a very discreet options box.

As configurations go, this is a bit unusual, since you roll between keys to change the characters for each hand. If that’s not convenient enough, you can hand-edit (get it? hand-edit! :lol: :roll: ) the .clockywock file and change them directly.

And as if all that wasn’t enough, clockwock has an alarm and a snooze function. So you can use it … well, you can use it like an alarm, of course. :| (I didn’t get any sound out of clockywock personally, but I have a rather oddball system, so it’s possible that’s my fault.)

If I could make any suggestions, it would only be the addition of color. I think it would be far easier to read clockywock at a distance if you could, for example, set the hour and minute hands to different colors, or maybe use solid blocks of individual colors instead of console characters. Perhaps it’s possible to do that with escape characters in the .clockywock file; I’m not sure I’m interested enough to pursue that.

As it stands this is another solid example of a console program that fills a function — in this case, something as simple as a clock display — does it cleanly and simply, and doesn’t require a wagonload of dependencies to get the job done. A gold smilie for clockywock: :D

About these ads

10 Responses to “An analog clock for the console”


  1. 1 Ali Gündüz 2009/12/27 at 6:11 AM

    It’s not really related to this post, but I would like to make a topic request for a blog post. :-)

    The copy/paste issue is my current biggest blunder with an X-less system. Do you have a way of copying text inside and between applications (like web browser, email/irc/im/blog and the shell of your choice?

    • 2 Peter 2009/12/27 at 11:44 AM

      GNU Screen provides copy/paste between the programs running in it.

      Ctrl-A, [

      to enter copy mode and use the SPACE bar to mark text to be copied, ESC get you out of copy mode

      Ctrl-A, ]

      to paste.

      • 3 Ali Gündüz 2009/12/27 at 5:15 PM

        Peter,

        Thanks. I was half expecting there was a simple gnu screen solution for it. :)

      • 4 K.Mandla 2009/12/27 at 7:34 PM

        Thanks, I was anticipating answering that, but I see you beat me to it.

        For what it’s worth, I sometimes keep open a tab in vim, to serve as a “clipboard” of sorts. This is particularly useful if I’m making up a blog post with repeated links in it. Paste in, copy back out, profit. …

  2. 5 ajlec2000 2009/12/27 at 11:01 PM

    Is it me or is the hour hand longer then the minute hand?

    • 6 Papanoel 2009/12/28 at 10:50 PM

      it’s you.. but not really..
      If you look at the second screenshot, the parameters are:
      - “minute hand character: h”
      - “hour hand character: m”
      Quite confusing hey?


  1. 1 Using figlet for a console screensaver « Motho ke motho ka botho Trackback on 2010/01/02 at 3:29 PM
  2. 2 binclock and a screensaver script « Motho ke motho ka botho Trackback on 2010/06/13 at 8:08 AM
  3. 3 vtclock: One more console clock can’t hurt « Motho ke motho ka botho Trackback on 2010/06/26 at 9:51 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,962,787 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: