It was Crazy difficult to get a text expander, custom hotkeys working in Ubuntu

Many have tried to sort this out.

I just did a chatgpt session and discovered that Espanso coupled with Input-mapper can achieve this. The Espanso trigger can be any modifier, it does not have to be a colon.

The problem with the colon is it requires a shifted key which input-mapper does not recognise. I changed it to a grave on my Logitech MX Keys keyboard just below the escape key.

Now I can insert my address just with a ` and an a. My email with an ` and an e. My 'phone with a ` and a t.

Almost as good as khotkeys but working in Wayland.

So you need to download Espanso and input-mapper first. https://espanso.org/docs/install/linux/

and input-mapper here: https://github.com/sezanzeb/input-re…eadme/usage.md

Then in a terminal type espanso edit, that will give you a nano session and from there see the default example with a colon.

Create your first snippet with a grave or semi-colon or other PRIMARY key that is not used much.

Check it works.

Then follow the instructions in the gui for input mapper. It walks you through it pretty much.​

Cheers Tony

2 Likes