mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 09:35:12 -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
|
||||
polychromatic
|
||||
dolphin
|
||||
espanso
|
||||
;
|
||||
};
|
||||
};
|
||||
|
@ -206,7 +207,7 @@ in
|
|||
;
|
||||
};
|
||||
};
|
||||
"${deimos.name}-${user2}" = {
|
||||
"${deimos.name}-${user2}" = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
cli
|
||||
|
|
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