diff --git a/.sources/sources.json b/.sources/sources.json index 6033fe0..432d7ef 100644 --- a/.sources/sources.json +++ b/.sources/sources.json @@ -132,6 +132,18 @@ "url": "https://github.com/rose-pine/hyprland/archive/6898fe967c59f9bec614a9a58993e0cb8090d052.tar.gz", "hash": "1l9xrrympg8ikvmq8mazb9x2byci4l230hqgyagvl3id8xkiicm1" }, + "i3": { + "type": "Git", + "repository": { + "type": "GitHub", + "owner": "rose-pine", + "repo": "i3" + }, + "branch": "main", + "revision": "d4f374a5a582f6594e09ff08e85cb31f1be3b9e3", + "url": "https://github.com/rose-pine/i3/archive/d4f374a5a582f6594e09ff08e85cb31f1be3b9e3.tar.gz", + "hash": "1r1ma3whdks87c2vs6cj3kq2kqyhahqvsxbdfgm132fpwxgpbk77" + }, "imv": { "type": "Git", "repository": { diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix index d392f8a..595ad4e 100644 --- a/modules/home-manager/sway.nix +++ b/modules/home-manager/sway.nix @@ -1,12 +1,20 @@ -{ config, lib, ... }: -let - inherit (config.catppuccin) sources; - cfg = config.wayland.windowManager.sway.catppuccin; - enable = cfg.enable && config.wayland.windowManager.sway.enable; - theme = "${sources.sway}/themes/catppuccin-${cfg.flavor}"; -in { - options.wayland.windowManager.sway.catppuccin = lib.ctp.mkCatppuccinOpt { name = "sway"; }; + config, + lib, + ... +}: let + inherit (config.rose-pine) sources; + + cfg = config.wayland.windowManager.sway.rose-pine; + enable = cfg.enable && config.wayland.windowManager.sway.enable; + + themeName = + if (cfg.flavor == "main") + then "rose-pine" + else "rose-pine-${cfg.flavor}"; + theme = "${sources.sway}/themes/${themeName}.theme"; +in { + options.wayland.windowManager.sway.rose-pine = lib.rp.mkRosePineOpt {name = "sway";}; config = lib.mkIf enable { wayland.windowManager.sway.extraConfigEarly = ''