Window id of xterm started
Julian Bradfield
jcb+fdt at julianbradfield.org
Mon Feb 12 13:02:43 UTC 2024
On 2024-02-10, Riza Dindir <riza.dindir at 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.)
More information about the xorg
mailing list