diff --git a/_sources/generated.json b/_sources/generated.json index 85d0624..947af68 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -639,6 +639,26 @@ }, "version": "a556353d60833367b13739e660d4057a96f2f4fe" }, + "tofi": { + "cargoLocks": null, + "date": "2023-09-30", + "extract": null, + "name": "tofi", + "passthru": null, + "pinned": false, + "src": { + "deepClone": false, + "fetchSubmodules": false, + "leaveDotGit": false, + "name": null, + "owner": "catppuccin", + "repo": "tofi", + "rev": "2e74ddba0c582b2ca2d9d06f67f5a902c3a093fb", + "sha256": "sha256-XUwixvy2WyfaSRHM8cTnOn8lKv+vbhheDA1Z47ap+Mc=", + "type": "github" + }, + "version": "2e74ddba0c582b2ca2d9d06f67f5a902c3a093fb" + }, "yazi": { "cargoLocks": null, "date": "2024-02-21", diff --git a/_sources/generated.nix b/_sources/generated.nix index fc3884f..cbfa20d 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -385,6 +385,18 @@ }; date = "2024-04-21"; }; + tofi = { + pname = "tofi"; + version = "2e74ddba0c582b2ca2d9d06f67f5a902c3a093fb"; + src = fetchFromGitHub { + owner = "catppuccin"; + repo = "tofi"; + rev = "2e74ddba0c582b2ca2d9d06f67f5a902c3a093fb"; + fetchSubmodules = false; + sha256 = "sha256-XUwixvy2WyfaSRHM8cTnOn8lKv+vbhheDA1Z47ap+Mc="; + }; + date = "2023-09-30"; + }; yazi = { pname = "yazi"; version = "0846aed69b2a62d29c98e100af0cf55ca729723d"; diff --git a/modules/home-manager/tofi.nix b/modules/home-manager/tofi.nix new file mode 100644 index 0000000..aea615f --- /dev/null +++ b/modules/home-manager/tofi.nix @@ -0,0 +1,18 @@ +{ config +, lib +, sources +, ... +}: +let + inherit (lib) ctp; + cfg = config.programs.tofi.catppuccin; + enable = cfg.enable && config.programs.tofi.enable; +in +{ + options.programs.tofi.catppuccin = + lib.ctp.mkCatppuccinOpt "tofi"; + + config.programs.tofi = lib.mkIf enable { + settings = lib.ctp.fromINI (sources.tofi + /catppuccin-${cfg.flavour}); + }; +} diff --git a/nvfetcher.toml b/nvfetcher.toml index 6d05c37..2ddc599 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -126,6 +126,10 @@ fetch.github = "catppuccin/swaylock" src.git = "https://github.com/catppuccin/tmux.git" fetch.github = "catppuccin/tmux" +[tofi] +src.git = "https://github.com/catppuccin/tofi.git" +fetch.github = "catppuccin/tofi" + [yazi] src.git = "https://github.com/catppuccin/yazi.git" fetch.github = "catppuccin/yazi" diff --git a/test.nix b/test.nix index 66eaeca..fdad4a5 100644 --- a/test.nix +++ b/test.nix @@ -62,9 +62,11 @@ in fish = enable; foot = enable; fzf = enable; - git = enable // { - delta = enable; - }; + git = + enable + // { + delta = enable; + }; gitui = enable; # this is enabled by default already, but still # listing explicitly so we know it's tested @@ -83,6 +85,7 @@ in starship = enable; swaylock = enable; tmux = enable; + tofi = enable; yazi = enable; zathura = enable; zellij = enable;