…with Espanso text expander in Rust (works in Bash, Firefox,…)

Getting Started

1yay -S espanso-bin # install espanso package for archlinux
2espanso status     # get espanso service status
3espanso start      # start espanso service / create ~/.config/systemd/user/espanso.service if does not exist
4espanso path       # list espanso config files
5:date              # get current date from trigger :date config files

Support

  • fix X11 display context error with starting Espanso service
1[[ -z $(grep DISPLAY $HOME/.config/systemd/user/espanso.service) ]] && \
2  sed -i '/\[Service\]/aEnvironment="DISPLAY=:0"' $HOME/.config/systemd/user/espanso.service && \
3  /usr/bin/systemctl --user daemon-reload  && \
4  espanso start  # fix x11 display context error

Sources