title: Change konsole tab title from command line and make it persistent?
body: <p>How can I change the konsole tab title? By default, it's set to <code>%u : %n</code>, so it always changes automatically. </p>
  
  <p>I can set it with:</p>
  
  <pre><code>qdbus org.kde.konsole $KONSOLE_DBUS_SESSION setTitle 1 "My Title"
  </code></pre>
  
  <p>But as soon as you run something in the console, it changes back to <code>%u : %n</code>. Of course. I can set it to <code>%w</code> to tell it to set the title to "Window Title set by shell", but later (if I don't explicitly set it), it will be empty. (Every new tab will be empty, unless I set it.)</p>
  
  <p>The question is how to make it persistent (or how to switch profile via command line)? I can make another profile in which the title format is set to <code>%w</code>, and before I set my custom title, switch to that profile.</p>
  
  <p><a href="https://i.stack.imgur.com/qS5AO.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/qS5AO.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/p3TQz.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/p3TQz.jpg" alt="enter image description here"></a></p>
  
  <p>edit: I think I have found the answer</p>
  
  <p>qdbus org.kde.konsole $KONSOLE_DBUS_SESSION setTabTitleFormat 0 ""
  qdbus org.kde.konsole $KONSOLE_DBUS_SESSION setTitle 0 "My Title"</p>