How to Display Date and Time in the active window title?
Gerhard den Hollander
gdenhollander at fugro-jason.com
Thu Feb 3 12:58:26 GMT 2005
* Markus Tacker <mtacker at itfuture.de> (Thu, Feb 03, 2005 at 01:29:51PM +0100)
>>Not possible. Only way to do this is to modify the source code, but you
>>have to be a programmer with C++ and KDE knowledge to do this.
> Sigh. Expected that.
> I hoped there was a way with dcop to get the Window witch has the
> focus and change its title.
Well, not with dcop, but you can do it the old fashioned 1992 way
(this worked on a convex with tcsh 5.something, and still works under
linux)
There are xterm escape sequences which you can use to change the title in
the title bar of your window.
You can use the builtin tcsh functions to execute these xterm escape
sequences every second (with some limitations, see the tcsh man page)
check the examples in the tcsh man page (look for precmd)
Use the attached script (titledate) as in
set tperiod=1
alias periodic titledate
This will update the title bar to the current time once every minute.
(works for both xterms and konsoles)
Kind regards,
--
Gerhard den Hollander Phone :+31-10.280.1515
Global ICT manager Direct:+31-10.280.1539
Fugro-Jason Fax :+31-10.280.1511
gdenhollander at Fugro-Jason.com POBox 1573
visit us at http://www.Fugro-Jason.com 3000 BN Rotterdam
JASON.......#1 in Reservoir Characterization The Netherlands
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the addressee. This e-mail shall not be deemed binding
unless confirmed in writing. If you have received it by mistake, please let us
know by e-mail reply and delete it from your system; you may not copy this
message or disclose its contents to anyone. Please note that any views or
opinions presented in this e-mail are solely those of the author and do not
necessarily represent those of the company. E-mail transmission cannot be
guaranteed to be secure or error-free. The sender therefore does not accept
liability for any errors or omissions in the contents of this message, which
arise as a result of e-mail transmission.
-------------- next part --------------
#!/bin/sh
date=`date`
/bin/echo "]2;$date ]1;$date "&
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list