xmousepos(1)

xmousepos1

Gets and prints the current mouse position

Usage

xmousepos [windowid]

Overview

xmousepos is a program that gets and prints the current mouse position in the window specified by windowid or from the current window by default. The output has the form X Y U V where

X

- root x position

Y

- root y position

U

- mouse relative x position to the window.

V

- mouse relative y position to the window.

Releases

Unchanged in 10 releases since Debian 5.0 (Lenny).

  1. 5.0–Arch

Author

xmousepos was written by Steve Slaven <[email protected]>.

This manual page was written by Kapil Hari Paranjape <[email protected]>, for the Debian project (but may be used by others).

From xautomation 1.09-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.