[Discuss] Locating specific terminal windows by pty number?

Bill Ricker bill.n1vux at gmail.com
Mon Jan 8 22:45:54 EST 2024


This depends upon what Window Manager and perhaps Desktop Manager you're
running ?

Assuming you're X/X11 (as opposed to Wayland or whatever?) it looks like
optional installs *xdotool , xwit,* and *wmctrl* are the CLI options to map
PID to Window ID and remote control windows by Window ID. (But xwit doesn't
know from PIDs, so it needs the window id from elsewhere.)
e.g., from askubuntu.com (SE private label)

xdotool windowactivate `xdotool search --pid YOUR_PID_HERE | tail -1`


More information about the Discuss mailing list