Espanso not working on Wayland? Causes and fixes
Espanso not expanding on Wayland? It is almost always the package, setcap, the keyboard layout, app configs or a new keyboard. Here is how to fix each.
Michael Grossklos3 min read

If Espanso stops expanding on Wayland or types the wrong characters, one of five things is almost always the cause: the X11 build instead of the Wayland build, a missing setcap step, a keyboard layout that isn’t set, app-specific configs that don’t apply on Wayland, or a keyboard Espanso didn’t see at startup. Go through them in order.
Espanso works well on X11. The trouble starts for many people after a switch to Wayland, which most distributions now use by default.
Disclosure: I build tippkraft, another text expander for Linux. This is about getting Espanso to work. tippkraft only comes up at the end.
1. You installed the X11 build
Espanso has separate builds for X11 and Wayland. The X11 build starts on a Wayland desktop but never sees your keystrokes in native Wayland apps.
- Debian and Ubuntu: install
espanso-debian-wayland-amd64.debfrom the Espanso releases, not the plain.deb. - Fedora:
sudo dnf install espanso-waylandfrom the Terra repository. - Arch and most other distributions: there is no official Wayland package. You build it yourself:
cargo build -p espanso --release --no-default-features --features modulo,vendored-tls,wayland
The Espanso docs list the build dependencies, including wl-clipboard.
2. The setcap step is missing
On Wayland, Espanso reads the keyboard directly from /dev/input and types through /dev/uinput. Normal users can’t do that, so Espanso needs a capability:
sudo setcap "cap_dac_override+p" $(which espanso)
File capabilities belong to the file. If a package update or a rebuild replaces the binary, the capability is gone and Espanso silently stops working. Run the command again after every update.
3. Wrong characters: the keyboard layout
On Wayland, Espanso can’t ask the desktop which layout you use. It assumes US. With a German, French or Nordic layout you get z and y swapped, or broken umlauts and accents. Set the layout in config/default.yml:
keyboard_layout:
layout: "de"
variant, model, rules and options work as well. To find your current layout, try localectl status, gsettings get org.gnome.desktop.input-sources sources on GNOME or swaymsg -t get_inputs on Sway.
4. App-specific configs do nothing
Configs with filter_class or filter_title depend on knowing which window has focus, and Wayland doesn’t tell normal programs that. How well they work depends on your desktop and your Espanso version:
- Sway, Hyprland and other wlroots compositors: supported since Espanso 2.4.0 (July 2026). If yours don’t apply, check
espanso --versionfirst. Distribution packages are often older. - KDE Plasma: may work if
kdotoolis installed, according to the docs. - GNOME: expect them not to work.
5. A new keyboard isn’t recognized
Espanso finds keyboards when it starts. If you plug in a keyboard later, or a Bluetooth keyboard reconnects, run:
espanso restart
Still flickering on GNOME?
With the clipboard backend, which Espanso uses for longer snippets, GNOME shows a short flicker. The docs say this doesn’t happen on Sway. You can lower clipboard_threshold or force a backend in the config, but it’s a known limitation.
If you’d rather not deal with this
Espanso’s Wayland support is officially experimental. If you mainly want snippets that work and you don’t need Espanso’s scripts or YAML config, tippkraft is an alternative built for Wayland from the start. It detects your keyboard layout, needs no setcap (your user is in the input group instead), and its per-app exclusion list works on KDE, Niri, Sway and Hyprland. Snippets are managed in a web app and sync to all your machines. The desktop client is open source (MIT). The service is free for one device and 25 snippets, after that it costs money. The reasons are in why tippkraft isn’t entirely free. For setup on a tiling compositor, follow a text expander on Hyprland, Niri and Sway in 5 minutes.
A fair comparison of both, including where Espanso is better: tippkraft vs. Espanso.
Sources
- Espanso docs: Install on Linux, retrieved 16 November 2026
- Espanso 2.4.0 release notes, retrieved 16 November 2026
How this was written: research and draft with AI assistance, facts checked and edited by Michael Grossklos.
Share
More articles
AutoKey on Wayland: does it work in 2026?
Mostly no: AutoKey 0.96.0 is X11-only per its README. The 0.97.0 beta from Git supports Wayland on GNOME and KDE Plasma, but not on Niri, Sway or Hyprland.
Best PhraseExpress alternatives for Linux in 2026
No PhraseExpress for Linux? 6 alternatives compared: which run on Wayland, which import your PhraseExpress snippets and which only work in a browser.
A text expander on Hyprland, Niri and Sway in 5 minutes
With tippkraft it takes four steps: add your user to the input group, install, let setup add the shortcuts, then save your first snippet in the web app.