I've fiddled with this for quite a while, and I finally have gotten it to
work!
I wanted the names on the Konsole session tabs to match the last node of the
working directory; that makes it much easier to pick the right tab. The
change is triggered by bash routine kcd (konsole cd) and the code that
actually changes the tab name is changeKonsoleSessionName.
I've attached the pieces of code that do the job. (changeKonsoleSessionName
is written in Rexx. Sorry, but the string manipulation tools in bash are
just awful; but the code is probably clear enough, and could be rewritten by
an enterprising person. :-)
I was thinking of adding something to change the text colour of the tab, but
there doesn't seem to be a DCOP method for doing that. :-(
Leslie
--
Platform: Linux
Distribution: openSUSE Leap 15.4 - x86_64
Desktop Environment: Trinity
Qt: 3.5.0
TDE: R14.1.0
tde-config: 1.0
Show replies by date