Originally Posted by
halogen2
But it doesn't work in xfce4-terminal, or any other terminal emulator that I've tried? And I can't find a code that does?
Turns out I was at least in part blocked by my .bashrc being a modification of standard Ubuntu bashrc, which contains this code -
Code:
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
The following code does momentarily change the terminal title in xfce4-terminal and mate-terminal -
Code:
echo -e -n '\033]0;Custom Title\007';sleep 5
I like the effect of the bashrc code, so I will still stick with the wmctrl-based solution.
Bookmarks