LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-22-2004, 05:24 AM   #1
Bonch
Member
 
Registered: Oct 2004
Location: Estonia
Distribution: Debian - sarge
Posts: 38

Rep: Reputation: 15
Set the Xterm title to reflect the current time !


Any ideas?
 
Old 10-22-2004, 05:38 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
Code:
PS1="[\$(date +%I:%M) \u \w]\$ \[\033]0;\u \w \$(date +%I:%M) \007\]" ;
sets it in the prompt and the xterm window.

Last edited by darthtux; 10-22-2004 at 05:41 AM.
 
Old 10-22-2004, 05:54 AM   #3
Bonch
Member
 
Registered: Oct 2004
Location: Estonia
Distribution: Debian - sarge
Posts: 38

Original Poster
Rep: Reputation: 15
tnx for answer!

But, is it possible to make it work like a digital clock?
I mean not just show the time when I load Xterm but allways show the correct time !
 
Old 10-22-2004, 05:58 AM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
Not that I know of. It will update every time you enter a command or just hit enter for that matter.
 
Old 10-22-2004, 06:11 AM   #5
Bonch
Member
 
Registered: Oct 2004
Location: Estonia
Distribution: Debian - sarge
Posts: 38

Original Poster
Rep: Reputation: 15
...sad to hear

I am just looking for a painless way to always know the current time in X.
I use Enlightenment and can'nt find anything as easy as small digital clock some where on desktop.
 
Old 10-22-2004, 06:14 AM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
Search for epplets. They are like dock icons for enlightenment. I know there is at least one clock.
 
Old 10-22-2004, 12:44 PM   #7
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
I use torsmo to display a lot of information - the date and time among other things. It displays text information directly on the desktop. Here is a screenshot of it next to the E workspace switcher. I also use the Firefox datetime extension to display the time in the right of the Firefox status bar (getting crowded there now ).


Håkan
 
Old 10-24-2004, 02:45 AM   #8
Bonch
Member
 
Registered: Oct 2004
Location: Estonia
Distribution: Debian - sarge
Posts: 38

Original Poster
Rep: Reputation: 15
Torsmo is really nice and helpful program but when it starts it prints something like
/.torsmorc: 53: wtf? or /.torsmorc: 55: wtf?
What could it mean?

Also I was able to setup the position only from the command line ( torsmo -a top_left -x 165 -y 695), is there any possibility to make it from the .torsmorc ?
 
Old 10-24-2004, 06:14 AM   #9
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
I am not aware of a way to set the location and geometry from .torsmorc but if anyone else can show me I would be very happy. I launch torsmo from my .xsession file which also launches lineakd and my window manager, so I have the location set there on the torsmo line.

The "wtf?" lines indicate you have something fishy in your .torsmorc on the lines 53 and 55.


Håkan
 
Old 10-24-2004, 04:39 PM   #10
Bonch
Member
 
Registered: Oct 2004
Location: Estonia
Distribution: Debian - sarge
Posts: 38

Original Poster
Rep: Reputation: 15
tnx hw-tph

Well, one problem I fixed, there is no more "WTF?",
but there is still question about positioning torsmo on the desktop.
If I type in Xterm -> torsmo -a top_left -x 165 -y 695 then It is positioned correctly,
but when I put such record in my .xsession file then I've got only "top_left" and "-x 165 -y 695" left ignored !
How you set the location ?
 
Old 10-25-2004, 09:25 AM   #11
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
I'm sorry. I was sure I was handling the location from my .xsession but it appears I don't. My memory is quickly turning to crap.

Here are the relevant lines from my ~/.torsmorc:
Code:
alignment bottom_left
gap_x 180
gap_y 15
Hope that helps


Håkan
 
Old 10-25-2004, 04:50 PM   #12
Bonch
Member
 
Registered: Oct 2004
Location: Estonia
Distribution: Debian - sarge
Posts: 38

Original Poster
Rep: Reputation: 15
Yea that helps !

But have'nt you noticed something strange in window manager behavior?
I use enlightenment 17 and after torsmo start I can see some artifacts,
application windows sometimes don't redraw until I place another application window on them and remove!
That is really strange maybe it is connected with "own_window yes " option in .torsmorc file?
 
  


Reply


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
xterm title after quittin ssh sessions bujecas Slackware 1 07-01-2005 08:27 PM
How to set mlterm title? fossilet Linux - Software 2 04-13-2005 12:10 AM
How to set title in xterm according to what program running ? tvn Linux - General 1 07-25-2004 07:58 PM
custom xterm title when already defined in .bashrc brian0918 Linux - Software 1 06-01-2004 11:17 AM
konqueror: how to send current page location and title in uri?? grease Linux - General 2 06-07-2003 10:40 PM


All times are GMT -5. The time now is 05:07 PM.

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