Gentoo Archives: gentoo-user

From: Martins Steinbergs <mar@××.lv>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: auto rename konsole session tabs?
Date: Wed, 04 Oct 2006 05:04:50
Message-Id: 200610040759.42970.mar@ml.lv
In Reply to: Re: [gentoo-user] OT: auto rename konsole session tabs? by Mike Williams
1 On Tuesday 03 October 2006 22:12, Mike Williams wrote:
2 > On Tuesday 03 October 2006 18:04, James wrote:
3 > > OT:  I use kde and quite a lot of konsole sessions for  admin of many
4 > > other systems.  I currently manually use 'rename' in kde to put the
5 > > system's hostname into the tab (located at the bottom of the window), for
6 > > quick reference. Is there a way (trick) to automatically do this?
7 > >
8 > > My prompt (command line) does this automatically, I just want the
9 > > hostname of the remote host(or IP address)  I ssh into to replace the
10 > > 'shell #' that is there by default. If not ssh'd into a remote system,
11 > > then the default 'shell #' is ok as the default.
12 >
13 > dcop, and a wrapper around ssh, is the only way I can think of.
14 >
15 > dcop konsole-{PID} $(dcop konsole-{PID} konsole currentSession) \
16 > renameSession "${HOSTNAME}"
17 >
18 > I don't however have a reliable way of figuring out the PID of the current
19 > konsole process.
20 > Or, perhaps I do. http://lists.debian.org/debian-kde/2004/04/msg00271.html
21
22 This konsolescript does what you need. Logging to remote it shows on tab
23 user@host , on local it shows user or programm runing.
24
25 http://www.kde-apps.org/content/show.php?content=43873
26
27 m
28
29 --
30 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: OT: auto rename konsole session tabs? James <wireless@×××××××××××.com>
[gentoo-user] Re: OT: auto rename konsole session tabs? James <wireless@×××××××××××.com>