Set up ydotool with its daemon and uinput permissions to automate input under Wayland

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

Steps

  1. Install ydotool and its companion daemon ydotoold (package name varies by distro, or build from source)
  2. Add a udev rule granting the input group access to uinput, e.g. KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput", add your user to the input group, and re-login
  3. Start ydotoold as a background service (systemd unit) before issuing any commands — since v1.0.0 the daemon is mandatory, not optional
  4. Point clients at the daemon's socket via the YDOTOOL_SOCKET environment variable if it isn't at the default path, and ensure the socket is readable/writable by the invoking user
  5. Verify with ydotool key 28:1 28:0 (Enter down/up) or ydotool type "hello" once the daemon is confirmed running

Known gotchas

Related routes

Simulate keyboard and mouse input on Wayland (and X11) Linux desktops with ydotool via uinput
desktop-automation · 6 steps · unrated
Simulate keyboard/mouse input on a Wayland Linux session using ydotool
github.com/ReimuNotMoe/ydotool · 5 steps · unrated
Explain why an xdotool/wmctrl automation script fails when run under a Wayland session
wayland.freedesktop.org · 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