LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 06-19-2006, 04:06 AM   #1
jaybee
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 20

Rep: Reputation: 0
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!
 
Old 06-19-2006, 04:15 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Maybe this link will help: bash prompt tips

An example (with time): export PS1="\[\e]2;\t : \u@\H \w\a\e[32;1m\]>\[\e[0m\] "

Hope this helps.

PS: xclock is not used.

Last edited by druuna; 06-19-2006 at 04:16 AM.
 
Old 06-19-2006, 04:22 AM   #3
jaybee
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 06-19-2006, 04:30 AM   #4
jaybee
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 06-19-2006, 04:48 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

I haven't seen real time date/time prompts.

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.
 
Old 06-19-2006, 01:27 PM   #6
jaybee
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna
Hi,

I haven't seen real time date/time prompts.

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

Thanks for the reply
 
  


Reply

Tags
bash, prompt


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: set Konsole window title to current command bforbes Programming 5 04-19-2006 11:44 AM
window without a title bar using xlib CarzyIvan Programming 1 02-11-2006 04:21 PM
Konsole title bar LocoMojo Linux - Software 2 01-22-2006 10:02 AM
Anyway to get xclock to show just the date? Royle Linux - General 11 07-30-2005 11:17 AM
Title bar font qtrob Linux - Software 3 03-31-2005 06:27 PM


All times are GMT -5. The time now is 07:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration