diff --git a/_sources/generated.json b/_sources/generated.json index 9773d80..e4512dc 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -399,6 +399,26 @@ }, "version": "989420b24e1f651b176c9d6083ad7c3b90a27f8b" }, + "rofi": { + "cargoLocks": null, + "date": "2022-12-31", + "extract": null, + "name": "rofi", + "passthru": null, + "pinned": false, + "src": { + "deepClone": false, + "fetchSubmodules": false, + "leaveDotGit": false, + "name": null, + "owner": "catppuccin", + "repo": "rofi", + "rev": "5350da41a11814f950c3354f090b90d4674a95ce", + "sha256": "sha256-DNorfyl3C4RBclF2KDgwvQQwixpTwSRu7fIvihPN8JY=", + "type": "github" + }, + "version": "5350da41a11814f950c3354f090b90d4674a95ce" + }, "starship": { "cargoLocks": null, "date": "2023-07-13", diff --git a/_sources/generated.nix b/_sources/generated.nix index 546958a..4704e67 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -241,6 +241,18 @@ }; date = "2024-02-03"; }; + rofi = { + pname = "rofi"; + version = "5350da41a11814f950c3354f090b90d4674a95ce"; + src = fetchFromGitHub { + owner = "catppuccin"; + repo = "rofi"; + rev = "5350da41a11814f950c3354f090b90d4674a95ce"; + fetchSubmodules = false; + sha256 = "sha256-DNorfyl3C4RBclF2KDgwvQQwixpTwSRu7fIvihPN8JY="; + }; + date = "2022-12-31"; + }; starship = { pname = "starship"; version = "5629d2356f62a9f2f8efad3ff37476c19969bd4f"; diff --git a/modules/home-manager/rofi.nix b/modules/home-manager/rofi.nix new file mode 100644 index 0000000..bfed1c2 --- /dev/null +++ b/modules/home-manager/rofi.nix @@ -0,0 +1,21 @@ +{ config +, lib +, sources +, ... +}: +let + inherit (lib) ctp; + cfg = config.programs.rofi.catppuccin; + enable = cfg.enable && config.programs.rofi.enable; +in +{ + options.programs.rofi.catppuccin = + lib.ctp.mkCatppuccinOpt "rofi"; + + config.programs.rofi = lib.mkIf enable { + theme = builtins.path { + name = "catppuccin-${cfg.flavour}.rasi"; + path = "${sources.rofi}/basic/.local/share/rofi/themes/catppuccin-${cfg.flavour}.rasi"; + }; + }; +} diff --git a/nvfetcher.toml b/nvfetcher.toml index 238932f..feffaf2 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -78,6 +78,10 @@ fetch.github = "catppuccin/palette" src.git = "https://github.com/catppuccin/polybar.git" fetch.github = "catppuccin/polybar" +[rofi] +src.git = "https://github.com/catppuccin/rofi.git" +fetch.github = "catppuccin/rofi" + [starship] src.git = "https://github.com/catppuccin/starship.git" fetch.github = "catppuccin/starship" diff --git a/test.nix b/test.nix index 180c805..1c9b441 100644 --- a/test.nix +++ b/test.nix @@ -71,6 +71,7 @@ in lazygit = ctpEnable; micro = ctpEnable; neovim = ctpEnable; + rofi = ctpEnable; starship = ctpEnable; swaylock = ctpEnable; tmux = ctpEnable;