xclock show time in window title bar (using bash?)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
xclock show time in window title bar (using bash?)
Hi, is there any way to get xclock to show the time in the title bar and refresh it, or otherwise use date to keep the title of a window up to date with the current time?
thanks, that's helpful but I want it to stay updated without the need for me to be using the window...I'll read the link too and see if that provides any clues
to explain, this is to make up for the lack of any type of clock applet (or applet of any other kind) on the wm I'm using, windowlab - although I like it a lot, I want the time to be displayed somewhere without having to bring up an xclock window or refresh anything
I havent' used windowlab, but why not bring up the xclock automatically when you start the wm? You mention not wanting to bring up the xclock, any reason why?
Something like the following could be added to your .xinitrc:
xclock -geometry 210x35-0+0 -d &
Start the clock automatically, puts it in the upper right corner (man xclock for details).
I havent' used windowlab, but why not bring up the xclock automatically when you start the wm? You mention not wanting to bring up the xclock, any reason why?
Something like the following could be added to your .xinitrc:
xclock -geometry 210x35-0+0 -d &
Start the clock automatically, puts it in the upper right corner (man xclock for details).
Hope this helps.
Thanks, that's almost exactly what I do have...trouble is, the window title is 'xclock' so in order to read the time I have to select the window, not just glance at the menu bar as in wms that have applets...I found a nice little python clock that I have hacked to show the time in title bar. For fun I am making it recognise xclock options too...http://www.pygtk.org/articles/cairo-...tk-widgets.htm
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.