Add espanso
This commit is contained in:
parent
22aa32f852
commit
74cf7c2a99
|
@ -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
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
imports = [
|
||||
./modules/alacritty.nix
|
||||
./modules/autorandr.nix
|
||||
./modules/espanso.nix
|
||||
./modules/i3.nix
|
||||
];
|
||||
|
||||
|
|
33
system/nixos/home-manager/modules/espanso.nix
Normal file
33
system/nixos/home-manager/modules/espanso.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue