Using Espanso on Wayland NixOS

OK. I had to restart for things to work.

The port to NixOS 25.11 is working. But Espanso is not always working after computer sleep on my machine. I had to restart it to make it work again.

Are you also experiencing this problem?

I created a service to restart Espanso after sleep. It works with dbus so it depends on Gnome.


services.espanso = {
      enable = true;
      package = pkgs-unstable.espanso-wayland;
    };

on Niri, but nothing triggers :-/

EDIT: just found out that on wayland, need to set the layout if non-US and I’m not US ^^ it works now

Even with the service, Espanso is not always working even when its status is saying that it is running. So, I am removing it. :frowning:

Have you tried to change the backend setting? For Zen I had to add a per-app config to force clipboard, and set inject as the default one (instead of auto)

No. I just moved to Niri from Gnome. Maybe, I’ll try back.

You might be interested in this PR, it solved ~all my issues with auto-pasting in apps on Wayland (KDE)