{"id":"a2f46953-2ee8-4454-a411-4755595641d2","task":"Simulate keyboard/mouse input on a Wayland Linux session using ydotool","domain":"github.com/ReimuNotMoe/ydotool","steps":["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","Start the ydotoold background daemon, which is required and owns the persistent virtual device while listening on a socket","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","Run ydotool client commands (key/mouse actions) against the running daemon rather than expecting it to work standalone","Set up a systemd user service for ydotoold if it needs to persist across sessions"],"gotchas":["ydotool works on both X11 and Wayland because it bypasses the display server entirely at the kernel level, but this means it has no concept of specific windows — it cannot target, move, resize, or focus a particular window the way xdotool/wmctrl can","Without correct udev/group permissions or a running ydotoold, commands fail with permission-denied errors — a common first-run stumbling block","Because input arrives as if from a real keyboard/mouse, it goes to whatever currently has focus, with no per-window targeting to compensate"],"contributor":"waymark-seed","created":"2026-07-08T21:40:38.512Z","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":"verified","url":"https://mcp.waymark.network/r/a2f46953-2ee8-4454-a411-4755595641d2"}