feat(linux): add ydotool support for paste on Wayland#1425
Open
srix wants to merge 1 commit intoEpicenterHQ:mainfrom
Open
feat(linux): add ydotool support for paste on Wayland#1425srix wants to merge 1 commit intoEpicenterHQ:mainfrom
srix wants to merge 1 commit intoEpicenterHQ:mainfrom
Conversation
On Linux Wayland (especially KDE Plasma), enigo cannot inject keyboard events into other windows. This adds an opt-in system.useYdotool setting (default false) that uses ydotool to simulate Ctrl+V instead of enigo, enabling paste in native Wayland apps like Konsole, VS Code, and Cursor. Falls back to enigo when the setting is disabled or ydotool is unavailable. Also updates tauri-plugin-http to 2.5.7 and adds app data paths to the asset protocol scope for WAV file playback on Linux. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
system.useYdotoolsetting for Linux Wayland users whereenigocannot simulate keystrokes into other windowsydotool key ctrl+vto simulate paste instead of enigo, enabling paste in native Wayland apps (Konsole, VS Code, Cursor, KWrite, etc.)tauri-plugin-httpto 2.5.7 and adds app data paths to the asset protocol scope for WAV file playback on LinuxConfiguration
The
system.useYdotoolsetting defaults tofalse. Linux Wayland users who need this should:sudo apt install ydotoolsystem.useYdotooltotruein their settings (whispering-settingsin localStorage)No UI toggle has been added yet. When the setting is
false(default), the originalenigobehavior is unchanged on all platforms.Context
On Linux with Wayland (especially KDE Plasma),
enigocannot inject keyboard events into other windows due to Wayland's security model.wtypealso doesn't work on KDE as it lackswlr-virtual-keyboardprotocol support.ydotoolworks at the kernel level via/dev/uinput, making it compatible with all compositors and apps.Test plan
simulate_enter_keystrokeworks with ydotool enabled