xfce set title on the fly

Ralf Mardorf ralf.mardorf at alice-dsl.net
Fri Oct 25 10:50:46 CEST 2019

On Thu, 24 Oct 2019 22:24:50 -0700, Geoffrey Leach wrote:
>Is there a way to set the title of an xfce terminal "on the fly"?


in the first place you could name it like this

  xfce4-terminal --title="Foo" & sleep 2; xfce4-terminal --tab --title="Bar"

to change the name of the title bar (in the example it's the name of the
active window), you could run

  wmctrl -i -r $(xdotool getactivewindow) -T "New Titel"

IOW take a look at the options provided by wmctrl and xdotool, if you
want to change the name of the title bar on the fly.


“Awards are merely the badges of mediocrity.”

― Charles Ives 

More information about the Xfce mailing list