Repository navigation
v0.3.5
Fix: auto-paste no longer crashes gnome-shell
Clutter.VirtualInputDevice.notify_keyval() (used in v0.3.3–v0.3.4) routes events through gnome-shell's own Clutter event pipeline. Injecting a full transcript as hundreds of rapid key events destabilises the shell, causing gnome-shell to crash and the GDM login screen to appear.
Auto-paste now uses ydotool, which injects keystrokes via the kernel's uinput subsystem — completely outside the Wayland compositor. This is the correct approach for programmatic text input on GNOME Wayland.
Required: enable the ydotool daemon
Add to your NixOS system configuration (not Home Manager):
services.ydotool.enable = true;pkgs.ydotool is added to your user packages automatically when gnome.autoPaste = true in the Home Manager module.
Clipboard fallback
The transcript is always copied to the clipboard first. If ydotool is not found, the clipboard is still set and you can paste manually with Ctrl+V (or Ctrl+Shift+V in terminals).