xcursorview is an Xorg daemon that tracks an xinput cursor and draws a crosshair at its position. Crosshair width and color are customizable. Useful for debugging, minimal environments, or issues related to cursor rendering.
- xinput
- libX11
- libXfixes
- libXext
git clone https://github.com/jpcx/xcursorview.git
cd xcursorview
make
sudo make installxcursorview [-w width] [-c color] [-Fh] device-w, --width width: Set the total crosshair width (default: 11).-c, --color color: Set the crosshair color as a hex value (default: 0x800080).-F, --foreground: Do not daemonize.-h, --help: Display help information and exit.
device: The xinput device ID.
Draw a crosshair with default width and color for the xinput device ID 42:
xcursorview 42Draw a crosshair with width 15 and color 0x123456 for the xinput device ID 42:
xcursorview -w 15 -c 0x123456 42Written by Justin Collier.
Copyright (C) 2023 Justin Collier m@jpcx.dev License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.