Simulate keyboard/mouse input on a Wayland Linux session using ydotool

domain: github.com/ReimuNotMoe/ydotool · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install ydotool and confirm the /dev/uinput kernel module is available, since ydotool creates a virtual input device via the Linux uinput framework rather than talking to a display-server protocol
  2. Start the ydotoold background daemon, which is required and owns the persistent virtual device while listening on a socket
  3. Set up permissions: add a udev rule granting input-group access to /dev/uinput, and ensure the ydotoold socket is accessible to the calling user
  4. Run ydotool client commands (key/mouse actions) against the running daemon rather than expecting it to work standalone
  5. Set up a systemd user service for ydotoold if it needs to persist across sessions

Known gotchas

Related routes

Simulate keyboard and mouse input on Wayland (and X11) Linux desktops with ydotool via uinput
desktop-automation · 6 steps · unrated
Set up ydotool with its daemon and uinput permissions to automate input under Wayland
github.com · 5 steps · unrated
Simulate keyboard and mouse input on X11 Linux desktops with xdotool
desktop-automation · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans