From 92b85427ed9545bdd36a4c515d85f9b6296ef97d Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Tue, 21 Dec 2021 20:59:37 +0100 Subject: [PATCH] fix(core): switch Wayland to the SHIFT+INSERT paste combination by default. Fix #899 --- .../worker/engine/dispatch/executor/clipboard_injector.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/espanso/src/cli/worker/engine/dispatch/executor/clipboard_injector.rs b/espanso/src/cli/worker/engine/dispatch/executor/clipboard_injector.rs index 163245b..bf7ac6c 100644 --- a/espanso/src/cli/worker/engine/dispatch/executor/clipboard_injector.rs +++ b/espanso/src/cli/worker/engine/dispatch/executor/clipboard_injector.rs @@ -81,6 +81,11 @@ impl<'a> ClipboardInjectorAdapter<'a> { custom_combination } else if cfg!(target_os = "macos") { vec![Key::Meta, Key::V] + } else if cfg!(target_os = "linux") && cfg!(feature = "wayland") { + // Because on Wayland we currently don't have app-specific configs (and therefore no patches) + // we switch to the more supported SHIFT+INSERT combination + // See: https://github.com/federico-terzi/espanso/issues/899 + vec![Key::Shift, Key::Insert] } else { vec![Key::Control, Key::V] };