Rename a Yakuake Session from the Command Line

Yakuake provides a hotkey and GUI method for renaming tabs / command line sessions.

I would like to do the same through the command line, so I can script and use it in an alias. (My goal is that if I use an alias that runs SSH on some server, then the tab is renamed according to that server name ...)

I tried the suggestions given here Renaming the Konsole session from the command line after ssh is still out of luck.

+4
source share
1 answer

With KDE4, it should be used qdbusto manage KDE applications (instead of legacy and remote DCOPs). For example, to change the title of the first session, you can use:

qdbus org.kde.yakuake /Sessions/1 org.kde.konsole.Session.setTitle 1 "New title"

You can use to explore the available interfaces, methods, and properties qdbusviewer.

As a homework, try to get a list of active sessions (before you are going to change smth.).

+6
source

All Articles