diff --git a/modules/home/default.nix b/modules/home/default.nix index 6a13da2..6195e3d 100755 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -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 diff --git a/modules/home/gui/apps/tools/espanso/default.nix b/modules/home/gui/apps/tools/espanso/default.nix new file mode 100755 index 0000000..6b0e7a9 --- /dev/null +++ b/modules/home/gui/apps/tools/espanso/default.nix @@ -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.*)\\."; + replace = "Hi {{person}}!"; + } + ]; + }; + global_vars = { + global_vars = [ + { + name = "currentdate"; + type = "date"; + params = { + format = "%d/%m/%Y"; + }; + } + { + name = "currenttime"; + type = "date"; + params = { + format = "%R"; + }; + } + ]; + }; + }; + }; +}