Skip to main content
2 of 2
added 54 characters in body
Peter.O
  • 33.8k
  • 32
  • 120
  • 167

How do I find the X window ID under the mouse pointer in bash?

From a bash script, is there some way to get the ID of the X window under the mouse pointer?

(edit) I need the process to be non-interactive.

Peter.O
  • 33.8k
  • 32
  • 120
  • 167