xdotool is a command-line utility for automating mouse, keyboard, window, and desktop actions on X11 systems. It uses the XTEST extension and other Xlib functionality to generate input events programmatically. Users can search for windows and then move, resize, focus, activate, hide, close, or modify them. It can also switch desktops, relocate windows between desktops, and change desktop settings when the window manager supports EWMH features. The repository includes libxdo, a C library exposing similar automation capabilities for other programs. Commands can be chained and combined into shell scripts for desktop automation workflows. Native Wayland environments are not fully supported, although XWayland compatibility has improved in newer releases.

Features

  • Keyboard input simulation
  • Mouse movement and click automation
  • Window search and manipulation
  • Virtual desktop control
  • Scriptable command chaining
  • Reusable libxdo C library

Project Samples

Project Activity

See All Activity >

Categories

System

License

BSD License

Follow xdotool

xdotool Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of xdotool!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C

Related Categories

C System Software

Registered

2026-10-08