Score:0

change title for tabs in Terminator

zw flag

I connect to many servers using Terminator and the tabs will display username@host

This is fine when I have a few tabs but once I get many tabs all I see is username...

Is there a way to display the title of the tabs to just hostname?

This is remote servers so updating my profile won't help.

Thanks

waltinator avatar
it flag
I use the `xttitle` package (`sudo apt install xttitle;man xttitle`).
ccaj avatar
zw flag
I don't think that will work for what I want. I ssh to many servers in the same window; logging in and out of different servers. Every I ssh to a server the tab title has user@server. So it is getting the tab title from the command I am entering; i.e ssh user@server is there a way to have the tab tile just display server instead of user@server?
waltinator avatar
it flag
Read `man console_codes` then copy `printf "\e[2$USER@$HOSTNAME^G"` (`\e` is ESCape, `^G` is `Ctrl-G`) into your cut buffer and paste it into each window. What user are you logging in at the "many servers", and why can't you do a little customization? Managing many servers is an area of practical computer administration. Many tools have been written to help. Do your research - don't reinvent the wheel.
Score:0
us flag

The gnome-terminal of Ubuntu so ugly, the bad thing. You need to change to mate-terminal (apt install mate-terminal) and your question will be solved.

Then, open mate-terminal and config this one: Edit > Profile Preferences > Title and Command > Title When terminal commands set their own titles: Keep initial title

Now, you can try:

/usr/bin/mate-terminal --title=<WINDOW NAME> --tab <TAB NAME> -- <YOUR SSH SCRIPT>
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.