diff options
Diffstat (limited to 'modules/by-name/fo/foot/module.nix')
| -rw-r--r-- | modules/by-name/fo/foot/module.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/by-name/fo/foot/module.nix b/modules/by-name/fo/foot/module.nix index 29d886d6..b698eee9 100644 --- a/modules/by-name/fo/foot/module.nix +++ b/modules/by-name/fo/foot/module.nix @@ -11,6 +11,7 @@ config, lib, libraries, + pkgs, ... }: let cfg = config.soispha.foot; @@ -20,6 +21,11 @@ in { }; config = lib.mkIf cfg.enable { + # TODO: Maybe we can use the xdg-autostart mechanism for this? <2026-06-23> + soispha.programs.river.init.autoStart = [ + ["${lib.getExe' pkgs.foot "footclient"}"] + ]; + home-manager.users.soispha = { programs.foot = { enable = true; @@ -36,7 +42,7 @@ in { launch = "git show \${match}"; }; "regex:paths" = { - regex = "([^ '\"`=:\\\\[\\\\(]*/)([^/: '\"`\\\\)\\\\]]*)"; + regex = "([^ '\"`=:\\\\[\\\\(]*/[^/: '\"`\\\\)\\\\]*)"; launch = "ll \${match}"; }; @@ -52,10 +58,6 @@ in { }; }; }; - - soispha.river.autostart = [ - "${lib.getExe' config.home-manager.users.soispha.programs.foot.package "footclient"}" - ]; }; }; } |
