On 2024-02-10, Riza Dindir <riza.din...@gmail.com> 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 'echo $WINDOWID >/tmp/myxtermwid ; exec bash' (You could also get fancy with named pipes, but then the error handling is a bit harder.)