You are not logged in.

#1 2018-02-08 20:47

JimW
Member
Registered: 2015-12-08
Posts: 400

*SOLVED* - Rename Konsole terminal

I sometimes have several Konsole terminals running at the same time, often with the same program working on different files. Is there any easy way, in a script, to rename the terminal to the file name I am working on?

Ok - edited to add a bit.
I found (by typing "konsole --help-tde") that I can open a new terminal with whatever name I want by issuing "konsole --caption <caption>" or konsole -T <title>. But haven't found a way to rename the terminal I am in. With those two examples the script stops until I close the new terminal.

Last edited by JimW (2018-02-09 05:05)

Offline

#2 2018-02-09 00:15

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: *SOLVED* - Rename Konsole terminal

I use terminator and one of the great things is it can split the terminal into separate terminals (within the one window) and I can give each terminal it's own title at any time by using the shortcut key Ctrl-Alt-X. I have found terminator to be invaluable when working with multiple instances.

Offline

#3 2018-02-09 05:04

JimW
Member
Registered: 2015-12-08
Posts: 400

Re: *SOLVED* - Rename Konsole terminal

After much searching and getting a lot of "how to change the title in Konsole tabs" - (didn't even know there were tabs in Konsole!) I finally found the answer!
Install xtitle from synaptic. Now to change the title of the terminal to the running program (or the first variable from the command) from my script all I have to do is include xtitle $1

So, I guess this is solved! Thanks for the suggestions guys!

Last edited by JimW (2018-02-09 05:06)

Offline

#4 2018-02-09 09:42

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: *SOLVED* - Rename Konsole terminal

You're welcome JimW, glad you found the answer, it's always handy to know these things. smile

Offline

Board footer

Powered by FluxBB