mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
feat: added espanso
This commit is contained in:
parent
9fdc5cf160
commit
a635237125
2 changed files with 45 additions and 1 deletions
|
@ -180,6 +180,7 @@ in
|
||||||
theming
|
theming
|
||||||
polychromatic
|
polychromatic
|
||||||
dolphin
|
dolphin
|
||||||
|
espanso
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
43
modules/home/gui/apps/tools/espanso/default.nix
Executable file
43
modules/home/gui/apps/tools/espanso/default.nix
Executable 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue