Espanso Capslock Problem
Continuing my quest to be able to use Linux as a drop-in replacement for my Win11 PC, I’ve been fighting with Espanso. After the tedious setup of manually converting all my expansions to work, I ran head-first into an exceedingly strange behaviour. Expansions only worked if Capslock was on, and they expanded IN CAPSLOCK.
Not exactly what I wanted.
After far too much searching around the web, I realised it was probably a combination of Espanso on Wayland and that I use a Norwegian keyboard layout. Even though the correct layout information shown below had been added on my initial install, it just didn’t work.
keyboard_layout:
layout: "no"
A new flurry of searching ensued until I found a closed issue on Github, and happily, that fix did the trick. Adding options:"caps:shiftlock"seems to have made all my difficulties disappear!
For future reference, add the following to default.yml for Espanso to work as intended. Also, remember you also added toggle_key: OFF to default.yml, just in case that affects this too.
keyboard_layout:
layout: "no"
options: "caps:shiftlock"