This repository contains my personal Espanso configuration and the small helper scripts used by it.
Espanso is a text expander for Linux, macOS and Windows. This repo stores the configuration files that define matches and replacements, and a few scripts used by the configuration.
-
config/default.yml— main Espanso config file.match/— folder containing individual match files used by Espanso:atl.yml,base.yml,timestamp.yml, andpackages/(additional packaged snippets)
-
python-scripts/discord-timestamp.py— helper script referenced by the config (see notes below).pyproject.toml— Python project metadata for the scripts.
-
README.md— this file.
-
Install Espanso following the official instructions for your OS: https://espanso.org/
-
Install or copy this configuration into your Espanso config directory. By default Espanso uses
~/.config/espansoon Linux.- To use the configuration directly, clone or copy these files into
~/.config/espanso. - Alternatively, keep the repo elsewhere and create a symlink from
~/.config/espansoto this folder.
- To use the configuration directly, clone or copy these files into
Note: If you intend to run the Python helper scripts in python-scripts/, create a virtual environment inside that directory first. For example, from the repository root:
cd python-scripts
uv venv # create a venv using your 'uv' helper
uv sync # optional: install/sync dependencies into the venvYou can also use standard tools instead of uv, e.g. python3 -m venv .venv and pip install -r requirements.txt.
- (Optional) Restart Espanso only if needed — Espanso typically hot-reloads when it detects configuration changes.
If you prefer to restart manually, you can run:
# Linux example
espanso restartIf you don't have espanso in your PATH, follow your distribution or install instructions and ensure the service/daemon is running.
The python-scripts/ directory contains helper scripts used by the match files. For example, discord-timestamp.py is intended to generate or format timestamps for use inside certain snippets.
Run the scripts with Python 3.8+ (adjust the interpreter according to your environment):
python3 python-scripts/discord-timestamp.pyIf you plan to run the scripts frequently it is recommended to create a virtual environment and install any dependencies defined in pyproject.toml.
- Edit YAML files under
config/andconfig/match/to add or change matches. - If you change scripts in
python-scripts/, ensure any match entries that call them still point to the correct path.
Notes:
- Paths in Espanso config are relative to the Espanso config directory. If you place this repository elsewhere, either update paths or use a symlink so Espanso sees the same layout.
This is a personal configuration but contributions and suggestions are welcome. If you make improvements, please open an issue or pull request describing the change.