Manual: Use Synergy/Deskflow on Omarchy (Hyprland) — mouse, keyboard, accents & shortcuts #10097
eleucarlos
started this conversation in
Manual
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Manual: Use Synergy/Deskflow on Omarchy (Hyprland) — mouse, keyboard, accents & shortcuts
The problem
Synergy 3 (and Deskflow) do not work out of the box on Hyprland/Wayland:
POINTER_MOTIONnever reaches the compositor.á é í ó ú,çcome out as plaina e i o u.SUPER+W,SUPER+Enter, etc. do nothing when pressed on the remote keyboard.Why? Hyprland has no native
org.freedesktop.portal.RemoteDesktopbackend (see hyprwm/xdg-desktop-portal-hyprland#252). We fix it with a small user-level portal bridge plus a Hyprland keybinding trick.The solution overview
hypr-kdeconnect-portal) that implementsRemoteDesktopvia libeis →zwlr_virtual_pointer_v1+zwp_virtual_keyboard_v1START_EMULATING, addSCROLL+BUTTON, setphysical_scale)SUPERfrom virtual keyboards (#3125 / #8537) — so use ALT variants of the shortcutsPart 1 — Install the bridge portal
The bridge is a fork of gac3k/xdg-desktop-portal-hypr-remote with the KWin-compatible fixes.
Build
Configure the portal routing
~/.config/xdg-desktop-portal/portals.conf:Reload:
Verify
Part 2 — The critical bridge fixes
These are the fixes that make mouse + keyboard + accents actually work. All are in
src/:Mouse fix (KWin-style EIS devices) —
src/eis_input_bridge.cppEIS_EVENT_DEVICE_START_EMULATING— just log it (KWin only sets an internal flag; acking here breaks motion).addPointerdevice:POINTER + BUTTON + SCROLL, no region.addAbsolutePointerdevice:POINTER_ABSOLUTE + SCROLL + BUTTON, with region andphysical_scale:Accent fix (Mod5) —
src/wayland_input.cpp+.hppus+ variantintl) in bothcreateKeymapFd(EIS) andsendKeyboardKeymap(Hyprland).100D 24D 100U 24U), which makes the compositor swallow the accent. Hold the AltGr release until the letter is released.Session acceptance —
src/portal_backend.cppcom.symless.synergy(Synergy Flatpak) toisAllowedAppIdinsrc/security_policy.hpp.clipboard_enabled=trueinStart.Part 3 — Shortcuts: use ALT instead of SUPER
The key discovery: Hyprland fires keybinds from virtual keyboards for ALT and CTRL, but NOT for SUPER/Meta (issue #3125: "All modifiers except the super key work" — confirmed by vaxerski). There is no fix; the workaround is to add ALT variants of the SUPER shortcuts.
Add to
~/.config/hypr/bindings.lua:Reload and verify:
Result
á é í ó úç)Works with Synergy 3.6.3 (client Flatpak) and should work with Deskflow and any libei/RemoteDesktop client. Server side can be Windows, macOS or Linux.
Files
~/hypr-kdeconnect-bridge/(stable binary:~/hypr-kdeconnect-bridge/backup-working)~/.config/xdg-desktop-portal/portals.conf~/.config/hypr/bindings.lua~/.config/hypr/input.luaRelated upstream issues
Tested on Omarchy + Hyprland 0.56.2, Windows Synergy 3.6.3 server.
All reactions