mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
44 lines
874 B
Nix
44 lines
874 B
Nix
![]() |
{ pkgs, ... }:
|
||
|
{
|
||
|
services.espanso = {
|
||
|
enable = true;
|
||
|
package = pkgs.espanso-wayland;
|
||
|
matches = {
|
||
|
base = {
|
||
|
matches = [
|
||
|
{
|
||
|
trigger = ":now";
|
||
|
replace = "It's {{currentdate}} {{currenttime}}";
|
||
|
}
|
||
|
{
|
||
|
trigger = ":hello";
|
||
|
replace = "line1\nline2";
|
||
|
}
|
||
|
{
|
||
|
regex = ":hi(?P<person>.*)\\.";
|
||
|
replace = "Hi {{person}}!";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
global_vars = {
|
||
|
global_vars = [
|
||
|
{
|
||
|
name = "currentdate";
|
||
|
type = "date";
|
||
|
params = {
|
||
|
format = "%d/%m/%Y";
|
||
|
};
|
||
|
}
|
||
|
{
|
||
|
name = "currenttime";
|
||
|
type = "date";
|
||
|
params = {
|
||
|
format = "%R";
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|