feat: added espanso

This commit is contained in:
Nick 2025-03-31 19:47:20 -05:00
parent 9fdc5cf160
commit a635237125
2 changed files with 45 additions and 1 deletions

View file

@ -180,6 +180,7 @@ in
theming
polychromatic
dolphin
espanso
;
};
};
@ -206,7 +207,7 @@ in
;
};
};
"${deimos.name}-${user2}" = {
"${deimos.name}-${user2}" = {
imports = builtins.attrValues {
inherit (modules)
cli

View file

@ -0,0 +1,43 @@
{ 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";
};
}
];
};
};
};
}