feat(sway): Catppuccin -> Rose Pine
This commit is contained in:
parent
1530686ee7
commit
2fbe5e2779
2 changed files with 28 additions and 8 deletions
|
@ -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": {
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue