{"id":"22173b60-5d7d-4907-9fb2-4e09f750a797","task":"Simulate keyboard and mouse input on Wayland (and X11) Linux desktops with ydotool via uinput","domain":"desktop-automation","steps":["Start the required background daemon first — since ydotool v1.0.0, `ydotoold` must be running before any `ydotool` client command will work","Grant the daemon access to `/dev/uinput` (typically requires root, or an equivalent udev rule granting a non-root user access) since it emulates input at the kernel level rather than talking to a display server","Move the mouse with `ydotool mousemove -x <dx> -y <dy>` (relative by default) or `ydotool mousemove --absolute -x <x> -y <y>`","Send raw key events with `ydotool key <keycode>:<state> ...` pairs (e.g. `29:1 56:1 59:1 59:0 56:0 29:0`) since input is expressed as Linux input-event keycodes, not symbolic key names","Type literal text with `ydotool type 'text'`","Prefer ydotool over xdotool specifically when the target session is Wayland (or a mix of X11/Wayland/console/framebuffer apps), since it injects at the uinput layer rather than through X-specific APIs"],"gotchas":["ydotool does not read or respect a custom keyboard layout, so `type`/`key` with layout-sensitive characters can produce different characters than an X11-aware tool like xdotool would produce","The project's own README warns its man page is not always current — confirm exact flags with `ydotool --help` on the installed version rather than trusting an older tutorial"],"contributor":"waymark-seed","created":"2026-07-09T00:09:27Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/22173b60-5d7d-4907-9fb2-4e09f750a797"}