On 10/02/2024 19:53, Riza Dindir wrote:
Hello,
I am starting xterm in my xinitrc. Is it possible to get the window id
of that xterm?
No-one has mentioned this solution yet, so for completeness I'll throw
it in:
XResQueryClientIds can be used to query the real pid of window. Unlike
`_NET_WM_PI
On Mon, 12 Feb 2024 19:02:13 +0300 Riza Dindir said:
> Ok what would be a reliable way of doing this.
Your best bet is the netwm pid. you can get the pid of xterm after you run it..
you can match this with the netwm pid property - that is pretty close to 100%
reliable (some exceptions... not in
On 2024-02-10, Riza Dindir wrote:
> I am starting xterm in my xinitrc. Is it possible to get the window id of
> that xterm?
I usually do the trick already mentioned of giving it an identifying
title or name, and looking for that.
However, since it's xterm, you can do something like
xterm -e 'ec
On Mon, 12 Feb 2024 14:06:36 +0300 Riza Dindir said:
> I ended up giving that xterm a distinct title. Using "xterm -T
> ". Then with the xdotool could find its id "xdotool
> search -name ".
very unreliable. title may be changed at any point before or after window
creation... you're asking for a
I haven't tried this myself, but perhaps it works.
I found the following via Google by searching for "window id from pid":
https://stackoverflow.com/questions/2250757/is-there-a-linux-command-to-determine-the-window-ids-associated-with-a-given-pro
I then searched to see if you can get the pid o
On Sat, 10 Feb 2024 15:53:39 +0300 Riza Dindir said:
> Hello,
>
> I am starting xterm in my xinitrc. Is it possible to get the window id of
> that xterm?
>
> Regards
echo $WINDOWID
(in the xterm itself).
But I suspect this is not what you want... and no - there is no reliable way of
getting
Hello,
I am starting xterm in my xinitrc. Is it possible to get the window id of
that xterm?
Regards