How to install Espanso on Debian or Ubuntu or Raspberry Pi OS

edafe.de/espanso

“Replace ‘:poke’ with ‘Pokémon,’ or save some time by replacing ‘:greeting’ with a stock email template. That’s the basic idea, but Espanso goes much further. It’s one of the most powerful utilities I’ve used, and if you’re willing to do a bit of legwork to set it up properly, it can be one of the most powerful tools on your PC, too”, writes Jacob Roach.

www.xda-developers.com

Installing Espanso for Wayland

Espanso is a cross-platform text expander written in Rust. Follow these instructions to install Espanso 2.3.0 for Wayland on your Debian-based distribution.

Compiling from source

If you are installing on any platform other than amd64 or simply prefer compiling software from source, start at Step 1.

Using the Debian binary package

If you are installing on amd64 hardware and would like to use the binary package for installation, start at Step 7.

Step 1

Install the required packages from your distribution’s software repository.

$ sudo apt install --yes build-essential git libdbus-1-dev libssl-dev libwxgtk3.*-dev libxkbcommon-dev wl-clipboard

Step 2

Download and install the Rust Programming Language.

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Select option 1) – just press enter.

1) Proceed with standard installation (default - just press enter)
2) Customize installation
3) Cancel installation
>

Step 3

Reload the PATH environment variable to include cargo, which is the build tool for Rust.

$ source "$HOME/.cargo/env"

Step 4

Clone the Espanso GitHub repository onto your local machine.

$ git clone https://github.com/espanso/espanso "$HOME/git/espanso"

Step 5

Compile Espanso in release mode.

$ cd "$HOME/git/espanso" && cargo build -p espanso --release --no-default-features --features modulo,vendored-tls,wayland

Step 6

Move Espanso to its correct location in your Linux system.

$ sudo mv "$HOME/git/espanso/target/release/espanso" /usr/local/bin/

Continue with Step 10

Step 7

Install the required packages from your distribution’s software repository.

$ sudo apt-get install --yes libwxgtk3.2-1t64 wl-clipboard

Step 8

Download espanso-debian-wayland-amd64.deb onto your local machine.

$ wget -P "$HOME/Downloads/" --show-progress https://github.com/espanso/espanso/releases/download/v2.3.0/espanso-debian-wayland-amd64.deb

Step 9

Install the downloaded package.

$ sudo dpkg -i "$HOME/Downloads/espanso-debian-wayland-amd64.deb"

Step 10

Give Espanso the permissions required for its operation.

$ sudo setcap "cap_dac_override+p" $(which espanso)

Check to see whether the Espanso binary was installed successfully.

$ espanso --version

Step 11

Register Espanso as a systemd service and launch the program.

$ espanso service register && espanso start && espanso status

Use the wizard and start with a practical example.

Step 12

After completing the wizard, use [Alt + Space] to open the search bar.

GNOME and PIXEL desktops only

Change the default shortcut for opening the search bar to resolve an existing conflict.

$ sed -i 's/search_shortcut: ALT+SPACE/search_shortcut: ALT+SHIFT+SPACE/' "$HOME/.config/espanso/config/default.yml"

Use [Alt + Shift + Space] to open the search bar.

Experimental support for Wayland

Espanso has some known limitations under Wayland. Most notably, “there is currently no support for App-specific configurations”.

#crossplatform #debian #espanso #linux #linuxmint #macos #raspberrypi #raspi #rpi #rust #ubuntu #wayland #windows #yearofthelinuxdesktop
#Espanso has been removed from autostart on this Mac and will be deleted once I migrate all the snippets to Raycast. I have absolutely had it with Espanso just spontaneously stopping working, still showing its icon in the menu bar, and having to be endtasked and restarted only to force the user to click through its two startup dialogs. #Raycast FTW.

Voy a seguir con mi culebrón sobre espanso, a ver si la comunidad, con su sabiduría, puede iluminarme para entender el misterio.
Recordareis, o no, que espanso me hacía tonterías y el texto expandido a partir de algunos disparadores no coincidía con el que yo había configurado en el archivo base.yml
Además este comportamiento era "aleatorio" ocurría a veces y otras no.
Ya he encontrado una pauta.
Cuando enciendo el ordenador, falla. Cuando fuerzo la recarga del archivo de configuracion, deja de fallar.
Lo que hago para forzar la recarga es abrirlo con Kate y guardarlo. No hace falta que cambie nada, espanso detecta que el archivo ha sido guardado y lo recarga. A partir de ese momento, hasta que apago el ordenador y lo vuelvo a encender, todo va bien.
Por una parte estoy contento de haber encontrado un método para esquivar el problema, por otro lado no me parece un comportamiento 'normal' y me gustaría no tener que hacer malabarismos para que funcione.
Cuando tenga un momento me pondré en contacto con el creador a través de Discord para comentarselo.

#espanso #problemas

La verdad es que espanso me tiene un poco mosca. Lleva varios dias haciendose un lío con los guiones y los corchetes cuadrados.
Acabo de usar el atajo ":je" y me ha salido justamente "jrnl Titulo --edit" que es lo que tengo configurado, aunque Estos días me sustituía los guiones por apóstrofes y otros los varios, como si no estubiera utilizando el juego de carateres UTF-8 que usan todos los programas de mi ordenador.
Esto es mucho peor que no funcionar, un comprotamiento aleatorio es más dificil de rastrear hasta el motivo del fallo.
Un poco mosca, la verdad.
#espanso #incognita

Tengo un problema con espanso.

Vi los comentarios de @jorgesanz y @doclomieu sobre espanso y lo instalé.
Básicamente es un expansor de teclado.
Cuando tienes textos que repites muchas veces o te resultan antipáticos de escribir, puedes configurar un atajo que siempre empieza por dos puntos. Poe ejemplo escribes :hl y según estas levantando el dedo de la tecla "l" aparece escrito "Hola, ¿Que tal?" si esa es la frase que asociaste a la combinacion de teclas.
Hay que saber que si has configurado un atajo como :h no puedes confiurar otro como :hk porque segun teclees la h se va a disparar el atajo a la cadena configurada para :h

Bueno esa es alguna de las cosillas que he aprendido en un par de dias de uso.

El caso es que hoy tengo un problema y espero que aquellos que han ido por delante de mi hayan encontrado ya la solución.
Configuré un atajo como sigue:

- trigger: ":-l"
replace: "\n---\n"

En Markdown eso escribe el código para una linea horizontal (tres guiones) y juro que ayer funcionaba.

Hoy espanso está travieso y cuando tecleo ";-l" lo qe obtengo son tres apóstrofes: '''' que a Markdown se la refanflinflan y ni linea horizontal ni nada.

He mirado el archivo base.ylm de configuracion y sigue como estaba ayer.
¿Alguien ha tenido un problema similar? ¿Soluciones?

#linux #espanso #problema

Wird bei mir unter #macos sehr stark genutzt
#espanso ist es unter #Linux

Beide kann ich sehr empfehlen https://mastodon.social/@ifun/115824484426363261

Okay, can ANYONE make a YouTube video about #espanso which talks about more than the basic vanilla text expansion functionality?

Hey everyone, here’s a box of colored pencils and here’s what you can do with them!! (draws a single line with a single color) righto then like and subscribe for moar!!! kthxbai

Man I wish I knew why #Espanso keeps quitting out on me. The menu bar icon just goes blank and when that happens I know the damn thing has died.

I created the following alias but it doesn't work in terminal..
kex='pkill -x espanso && espanso service unregister && espanso service register'

YET if I manually type espanso service unregister then espanso service register in terminal, it restarts Espanso.

Why doesn't the alias work? Does espanso hate my machine?

The only caveat: if you use other software like #espanso (great tool!), the order of loading matters. Booting up, keyd will naturally load before you load espanso (probably in your WM solution), but if you make changes to your config and reload keyd, espanso will stop working until you restart it as well. Something to know.

Espanso - Textexpander:

Kurze Frage in die Runde: Espanso läuft bei mir unter Linux Mint mit X11 rund. Wer benutzt denn einen Linux Desktop mit Wayland? Läuft Espanso dort auch inzwischen zufriedenstellend?

Danke!

https://espanso.org

#espanso #texterweiterung

Espanso - A Privacy-first, Cross-platform Text Expander