xclock

From LinuxReviews
Jump to navigationJump to search
Xclock.svg

xclock is a very old and seemingly utterly simple clock program for X11. It is part of the X11 reference applications (xorg-x11-apps). It has no graphical configuration interface, user-savable configuration file and no context-menu if you right-click on it. It does have a few command-line options that let you change things like the size of the window it launches and that's about it.

There's Not Much More To XClock Than Meets The Eye[edit]

What you get if you simply start xclock with no command-line arguments is a really tiny window with a plain and simple analog clock.

Tiny-xclock.jpg
A default xclock

The very small default xclock window can be resized. It does not force a 1:1 ratio when you resize it, so the default analog clock will look stupid unless you make sure you resize the window as wide as you make it high.

Stretched-xclock.jpg
A default xclock window resized more horizontally than vertically.

There is a command-line option for launching it with a larger default window: -geometry.

xclock -geometry 1024x1024

will give you a clock window that is 1024x1024 pixels large.

There is also a digital clock available. xclock will give you a digital clock if you launch it with xclock -d or xclock -digital. The "digital clock" is just a line of regularly updating text with the same information you get if you type date in a terminal.

There isn't much much more to xclock. There are a few more command-line options available in the xclock manual page, but they aren't very useful.

Verdict And Conclusion[edit]

xclock can show you a clock on your computer screen and that's about it. It can be useful if you want a large clock on your screen that can seen from across the room you are in (your room and computer screen size will vary), but there are better alternatives with way more features if that's what you are looking for. tzclock is one superior alternative. It has more command-line options, the option of adding a second hand to its analog clock and a context menu that lets you switch between different time-zones and a lot more.

The only sort-of quality xclock has is that it's typically there regardless of what computer you are using as long as it is some kind of GNU/Linux flavor since it is part of the "x11 apps" package and that package is typically installed along with the X11 display server.

See also[edit]


avatar

Anonymous (6ba7d484af)

7 days ago
Score 0
You should show an example (screen shot) of "-digital" - it can be very appealing in that it takes up very little desktop realestate. Something I've often done is launched them in a shell script, setting TZ before launching each "xclock", and passing arguments to set the background colors (e.g. UTC is gray, America/Chicago is light green, etc.) so that you can, at a glance, see the current time in various timezones that you care about. The major problem with Gnome's clock (at least on Red Hat) the only methods to see additional timezones end up soaking up huge amounts of desktop realestate.
avatar

Anonymous (22fd8719f7)

6 minutes ago
Score 0

There is an alternative for xclock called xarclock --- the reversed xclock:

"If clocks had been invented in Argentina (southern hemisphere), they would run counter-clockwise. Down there a sundial runs the other way around!

The program is an extension of the standard X clock widget. New features are: Configurable direction of rotation and font support in analog mode."

https://pack...ter/xarclock
Add your comment
LinuxReviews welcomes all comments. If you do not want to be anonymous, register or log in. It is free.