xmousepos -V (return code: 255)
xmousepos: Cannot open display
xmousepos -h (return code: 0)
xmousepos v1.09
Gets and prints the current mouse position
usage: xmousepos [windowid]
output:
X Y U V
X - root x position
Y - root y position
U - mouse relative x position to the specified window
V - mouse relative y position to the specified window
If no window is specified, then it will use the window
that the pointer is in (as defined by XQueryPointer).
The windowid should be specified in hex (0xNNNNNNN), you can
obtain a windowid using xwininfo.