Re: Window id of xterm started

2024-02-13 Thread Riza Dindir
I ended up giving that xterm a distinct title. Using "xterm -T ". Then with the xdotool could find its id "xdotool search -name ". On Mon, Feb 12, 2024 at 2:02 PM Carsten Haitzler wrote: > On Sat, 10 Feb 2024 15:53:39 +0300 Riza Dindir > said: > > > Hello, > > > > I am starting xterm in my

Re: Window id of xterm started

2024-02-13 Thread Riza Dindir
Ok what would be a reliable way of doing this. On Mon, Feb 12, 2024, 14:58 Carsten Haitzler wrote: > 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

Re: Window id of xterm started

2024-02-12 Thread Antoine Martin
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

Re: Window id of xterm started

2024-02-12 Thread Carsten Haitzler
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

Re: Window id of xterm started

2024-02-12 Thread Julian Bradfield
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

Re: Window id of xterm started

2024-02-12 Thread Carsten Haitzler
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

Re: Window id of xterm started

2024-02-12 Thread Guy Rouillier
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

Re: Window id of xterm started

2024-02-12 Thread Carsten Haitzler
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

Window id of xterm started

2024-02-12 Thread Riza Dindir
Hello, I am starting xterm in my xinitrc. Is it possible to get the window id of that xterm? Regards