feat(polybar): Catppuccin -> Rose Pine
This commit is contained in:
parent
4f738cbbf5
commit
5b93568483
2 changed files with 21 additions and 13 deletions
|
@ -232,13 +232,13 @@
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "GitHub",
|
"type": "GitHub",
|
||||||
"owner": "catppuccin",
|
"owner": "rose-pine",
|
||||||
"repo": "polybar"
|
"repo": "polybar"
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"revision": "20054f39d3b77bd1afc765981a42c3467bf91204",
|
"revision": "2c94fbc4997915c1c877cecc9aaf5b63797f74a4",
|
||||||
"url": "https://github.com/catppuccin/polybar/archive/20054f39d3b77bd1afc765981a42c3467bf91204.tar.gz",
|
"url": "https://github.com/rose-pine/polybar/archive/2c94fbc4997915c1c877cecc9aaf5b63797f74a4.tar.gz",
|
||||||
"hash": "130szcc72vnsl0872qpiiqad1qcspmasana4p2g9v3jxgn03xi4c"
|
"hash": "10b09fypcp8bj92wwkc95w4nwk4rxh0an3v2hdp551f8lc7qz75j"
|
||||||
},
|
},
|
||||||
"rio": {
|
"rio": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -422,4 +422,4 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 3
|
"version": 3
|
||||||
}
|
}
|
|
@ -1,13 +1,21 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
inherit (config.catppuccin) sources;
|
|
||||||
cfg = config.services.polybar.catppuccin;
|
|
||||||
enable = cfg.enable && config.services.polybar.enable;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
options.services.polybar.catppuccin = lib.ctp.mkCatppuccinOpt { name = "polybar"; };
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.rose-pine) sources;
|
||||||
|
|
||||||
|
cfg = config.services.polybar.rose-pine;
|
||||||
|
enable = cfg.enable && config.services.polybar.enable;
|
||||||
|
|
||||||
|
themeName =
|
||||||
|
if (cfg.flavor == "main")
|
||||||
|
then "rose-pine"
|
||||||
|
else "rose-pine-${cfg.flavor}";
|
||||||
|
in {
|
||||||
|
options.services.polybar.rose-pine = lib.rp.mkRosePineOpt {name = "polybar";};
|
||||||
|
|
||||||
config.services.polybar.extraConfig = lib.mkIf enable (
|
config.services.polybar.extraConfig = lib.mkIf enable (
|
||||||
builtins.readFile "${sources.polybar}/themes/${cfg.flavor}.ini"
|
builtins.readFile "${sources.polybar}/schemes/${themeName}.ini"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue