mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 05:49:25 -06:00
chore: init
This commit is contained in:
commit
1b2c1ea359
891 changed files with 37053 additions and 0 deletions
62
modules/home/gui/apps/tools/espanso/default.nix
Executable file
62
modules/home/gui/apps/tools/espanso/default.nix
Executable file
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
flake,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
matchHelper = trigger: replace: {
|
||||
trigger = trigger;
|
||||
replace = replace;
|
||||
};
|
||||
configPath = ./config;
|
||||
|
||||
configs = {
|
||||
url = { inherit flake matchHelper; };
|
||||
logic = { inherit matchHelper; };
|
||||
debate = { inherit matchHelper; };
|
||||
characters = { inherit matchHelper; };
|
||||
academic = { inherit matchHelper; };
|
||||
numbers = { inherit matchHelper; };
|
||||
email = { inherit flake matchHelper; };
|
||||
};
|
||||
|
||||
baseMatches = {
|
||||
matches = lib.concatMap (name: import (configPath + "/${name}.nix") configs.${name}) (
|
||||
builtins.attrNames configs
|
||||
);
|
||||
};
|
||||
in
|
||||
{
|
||||
services.espanso = {
|
||||
enable = true;
|
||||
configs = {
|
||||
default = {
|
||||
pre_paste_delay = 0;
|
||||
show_notifications = false;
|
||||
};
|
||||
};
|
||||
package = pkgs.espanso-wayland;
|
||||
matches = {
|
||||
base = baseMatches;
|
||||
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