[mdlug] Tired of indistinguishable Konsoles in KDE task bar?
Aaron Kulkis
akulkis00 at gmail.com
Sun Apr 25 21:27:40 EDT 2010
Put the following code snippet in your ~/.bashrc file.
Each window will include the tty device name
(/dev/pts/nn) munged to pts/nn.
Note, this has NOT been tested with gnome or other anything
other than Konsole
---------- code begins below ----------
# Begin KDE Konsole Window title code
TTY=`/usr/bin/tty`
# /dev/pts is a windowed pseudo-terminal
# /dev/ttynn is a virtual console
# /dev/ttySnn is a serial line
case $TTY in
/dev/pts/* )
# magic kde konsole window title bar escape codes
export PS1="\u@\h:\w> \[\e]30;\H:`tty|sed -e 's:/dev/::'`\a\] "
;;
default )
export PS1="\u@\h:\w> "
esac
# End KDE Konsole Window title code
More information about the mdlug
mailing list