Add espanso

This commit is contained in:
Oliver Davies 2023-12-14 23:59:56 +00:00
parent 22aa32f852
commit 74cf7c2a99
3 changed files with 40 additions and 0 deletions

View file

@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), but adapt
Instead of grouping changes by tag, they are grouped by the date they are released.
## 12th December 2023
## Added
* Add [espanso](https://espanso.org) as a text expander.
## 21st November 2023
### Added

View file

@ -4,6 +4,7 @@
imports = [
./modules/alacritty.nix
./modules/autorandr.nix
./modules/espanso.nix
./modules/i3.nix
];

View file

@ -0,0 +1,33 @@
let
baseUrl = "https://www.oliverdavies.dev";
in
{
services.espanso = {
enable = true;
configs = {
default = {
show_notifications = false;
};
};
matches = {
base = {
matches = [
{
trigger = ":atdc";
replace = "${baseUrl}/atdc";
}
{
trigger = ":call";
replace = "${baseUrl}/call";
}
{
trigger = ":coaching";
replace = "${baseUrl}/team-coaching";
}
];
};
};
};
}