mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 17:45:12 -05:00
43 lines
874 B
Nix
Executable file
43 lines
874 B
Nix
Executable file
{ 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";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|