feat(dunst): Catppuccin -> Rose Pine
This commit is contained in:
parent
2841326f0a
commit
db4860d283
2 changed files with 40 additions and 20 deletions
|
@ -360,6 +360,18 @@
|
||||||
"url": "https://github.com/catppuccin/rofi/archive/b636a00fd40a7899a8206195464ae8b7f0450a6d.tar.gz",
|
"url": "https://github.com/catppuccin/rofi/archive/b636a00fd40a7899a8206195464ae8b7f0450a6d.tar.gz",
|
||||||
"hash": "1a1sr451nsfii70j2f5qf8wq4jns0d4477a2kzh3993xdnx1j3yc"
|
"hash": "1a1sr451nsfii70j2f5qf8wq4jns0d4477a2kzh3993xdnx1j3yc"
|
||||||
},
|
},
|
||||||
|
"rose-pine-dunst": {
|
||||||
|
"type": "Git",
|
||||||
|
"repository": {
|
||||||
|
"type": "GitHub",
|
||||||
|
"owner": "d2718nis",
|
||||||
|
"repo": "rose-pine-dunst"
|
||||||
|
},
|
||||||
|
"branch": "main",
|
||||||
|
"revision": "496499eaed38a07ce4f79ec91baaf6e1e4c28bc5",
|
||||||
|
"url": "https://github.com/d2718nis/rose-pine-dunst/archive/496499eaed38a07ce4f79ec91baaf6e1e4c28bc5.tar.gz",
|
||||||
|
"hash": "0x7cqbcn7zygab9xbmbarz06wxkj3wxxffwmka33ljhm8gk3x0ay"
|
||||||
|
},
|
||||||
"skim": {
|
"skim": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -1,11 +1,19 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
inherit (config.catppuccin) sources;
|
|
||||||
cfg = config.services.dunst.catppuccin;
|
|
||||||
enable = cfg.enable && config.services.dunst.enable;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
options.services.dunst.catppuccin = lib.ctp.mkCatppuccinOpt { name = "dunst"; } // {
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.rose-pine) sources;
|
||||||
|
cfg = config.services.dunst.rose-pine;
|
||||||
|
enable = cfg.enable && config.services.dunst.enable;
|
||||||
|
themeName =
|
||||||
|
if (cfg.flavor == "main")
|
||||||
|
then "rose-pine"
|
||||||
|
else "rose-pine-${cfg.flavor}";
|
||||||
|
in {
|
||||||
|
options.services.dunst.rose-pine =
|
||||||
|
lib.rp.mkRosePineOpt {name = "dunst";}
|
||||||
|
// {
|
||||||
prefix = lib.mkOption {
|
prefix = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "00";
|
default = "00";
|
||||||
|
@ -13,14 +21,14 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Dunst currently has no "include" functionality, but has "drop-ins"
|
# Dunst currently has no "include" functionality, but has "drop-ins".
|
||||||
# Unfortunately, this may cause inconvenience as it overrides ~/.config/dunst/dunstrc
|
# Unfortunately, this may cause inconvenience as it overrides
|
||||||
# but it can be overridden by another drop-in.
|
# ~/.config/dunst/dunstrc but it can be overridden by another drop-in.
|
||||||
config.xdg.configFile = lib.mkIf enable {
|
config.xdg.configFile = lib.mkIf enable {
|
||||||
# Using a prefix like this is necessary because drop-ins' precedence depends on lexical order
|
# Using a prefix like this is necessary because drop-ins' precedence depends
|
||||||
# such that later drop-ins override earlier ones
|
# on lexical order such that later drop-ins override earlier ones.
|
||||||
# This way, users have better control over precedence
|
# This way, users have better control over precedence.
|
||||||
"dunst/dunstrc.d/${cfg.prefix}-catppuccin.conf".source =
|
"dunst/dunstrc.d/${cfg.prefix}-rose-pine.conf".source =
|
||||||
sources.dunst + "/themes/${cfg.flavor}.conf";
|
sources.dunst + "/${themeName}.conf";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue