I'm looking for a programme that will insert text snippets in any programme in both sway and xorg

Basically I want () to be inserted whenever I press this F9 or something. Autokey from the AUR doesn’t work.

1 Like

ydotool:

ydotool key shift+KEY_9 shift+KEY_0

Then attach to a hot key.

1 Like

Hello guys.
On Swaywm I installed wtype, then create a .sh for each snippet, by ex :
wtype ‘Best regards.
William Shakespeare’
This example contain a linebreak.
Then chmod… and create a bindsym in config.
This solution is great for me as an alternative to autokey, but maybe not relevant for everybody.

Well, thank you for replying 1 year later! I was actually looking for a text expander for wayland (completely forgot abut ydotool as well).