BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Locating specific terminal windows by pty number?



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`