Command-line tool
xdotool
brew/xdotool
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Fake keyboard/mouse input and window management for X
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install xdotool
Linux
brew install xdotool
Retrieve the X-Windows window ID of the running Firefox window(s)
xdotool search --onlyvisible --name firefox
Perform a mouse `<RightClick>`
xdotool click 3
Get the ID of the currently active window
xdotool getactivewindow
Related command-line tools
- mousejiggler
"Fake" mouse input to Windows, and jiggle the mouse pointer back and forth. - wtype
Xdotool type for wayland - keynavish
Control the mouse with the keyboard (rewrite of keynav for Windows). - Lan Mouse
Lan Mouse (Windows package; no description in the winget index) kvm network keyboard remote-control mouse sharing lan… - cliclick
Tool for emulating mouse and keyboard events - synergy-core
Synergy, the keyboard and mouse sharing tool - deskflow
Share a single keyboard and mouse between multiple computers. - kdotool
A xdotool-like tool to manipulate windows in KDE Plasma
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents