diff --git a/_sources/generated.json b/_sources/generated.json index 30adacae..08949739 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -359,6 +359,26 @@ }, "version": "c976222e5cacbba7946fb82163944924bd5fac12" }, + "swaylock": { + "cargoLocks": null, + "date": "2024-01-17", + "extract": null, + "name": "swaylock", + "passthru": null, + "pinned": false, + "src": { + "deepClone": false, + "fetchSubmodules": false, + "leaveDotGit": false, + "name": null, + "owner": "catppuccin", + "repo": "swaylock", + "rev": "ac089b8b8ae7852816fa709f6d97659221b75e18", + "sha256": "sha256-e17JVWyj+ES9qII8Ukj6JxZh4bWUK+gOKsTvUIu3Qq4=", + "type": "github" + }, + "version": "ac089b8b8ae7852816fa709f6d97659221b75e18" + }, "tmux": { "cargoLocks": null, "date": "2023-11-01", diff --git a/_sources/generated.nix b/_sources/generated.nix index bc5451af..65fc4276 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -217,6 +217,18 @@ }; date = "2023-08-20"; }; + swaylock = { + pname = "swaylock"; + version = "ac089b8b8ae7852816fa709f6d97659221b75e18"; + src = fetchFromGitHub { + owner = "catppuccin"; + repo = "swaylock"; + rev = "ac089b8b8ae7852816fa709f6d97659221b75e18"; + fetchSubmodules = false; + sha256 = "sha256-e17JVWyj+ES9qII8Ukj6JxZh4bWUK+gOKsTvUIu3Qq4="; + }; + date = "2024-01-17"; + }; tmux = { pname = "tmux"; version = "47e33044b4b47b1c1faca1e42508fc92be12131a"; diff --git a/modules/home-manager/swaylock.nix b/modules/home-manager/swaylock.nix new file mode 100644 index 00000000..9fceec9c --- /dev/null +++ b/modules/home-manager/swaylock.nix @@ -0,0 +1,16 @@ +{ config +, lib +, sources +, ... +}: +let + cfg = config.programs.swaylock.catppuccin; + enable = cfg.enable && config.programs.swaylock.enable; +in +{ + options.programs.swaylock.catppuccin = + lib.ctp.mkCatppuccinOpt "swaylock"; + + config.programs.swaylock.settings = lib.mkIf enable + (lib.ctp.fromINI (sources.swaylock + /themes/${cfg.flavour}.conf)); +} diff --git a/nvfetcher.toml b/nvfetcher.toml index c8201e8e..58597571 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -70,6 +70,10 @@ fetch.github = "catppuccin/starship" src.git = "https://github.com/catppuccin/sway.git" fetch.github = "catppuccin/sway" +[swaylock] +src.git = "https://github.com/catppuccin/swaylock.git" +fetch.github = "catppuccin/swaylock" + [tmux] src.git = "https://github.com/catppuccin/tmux.git" fetch.github = "catppuccin/tmux" diff --git a/test.nix b/test.nix index 57f8bf48..52b762e7 100644 --- a/test.nix +++ b/test.nix @@ -65,6 +65,7 @@ in micro = ctpEnable; neovim = ctpEnable; starship = ctpEnable; + swaylock = ctpEnable; tmux = ctpEnable; zathura = ctpEnable; };