Is it possible to change arbitrary window title in KDE?
Domanda
Is it possible to change window title of an arbitrary window that does not belong to my application (identified by application PID or window descriptor) in KDE? If so, how can it be done?
Soluzione
For anyone also searching for this, the above has helped me find the way to do this from the command line...
You will need to have wmctrl installed....
From the command line this can be achieved like this: First (optionally) list all windows:
wmctrl -l
Then, assuming you have a window called "foo this is a window bar", issuing
wmctrl -r "this is a window" -N "Full new title"
will set the title of this window to Full new title
Altri suggerimenti
Yes, it can be done.
- Iterate over the X11 Windows and check for one with the
_NET_WM_PID
property set toPID
, yielding theXID
of the window; - then change the
WM_NAME
property of that window.
But note that if this _NET_WM_PID
property is not set by the program on its windows, you will not be able to find the window by the PID
. And note that a program may set _NET_WM_PID
on all of its windows, so the result of the first step may not be a single window.