Skip to main content
1 of 2
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?

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