The question refers to: Linux Ubuntu, with Cinnamon desktop
Several program windows can be displayed on a desktop.
How can I get the WID via bash which window the mouse pointer is over?
The question refers to: Linux Ubuntu, with Cinnamon desktop
Several program windows can be displayed on a desktop.
How can I get the WID via bash which window the mouse pointer is over?
Copyright © 2021 Jogjafile Inc.
I cannot test this at the moment, but maybe
xdotool
offers a way to get the window under the mouse cursor. Fromman xdotool
:I assume the mentioned window id belongs to the window under the mouse cursor. To retrieve it, use
The window id can then be used in other tools like
xwininfo -id <wdid>
to get more information.