refactoring rose-pine-dunst.nix
This commit is contained in:
parent
ecedb9774d
commit
647a8f2073
1 changed files with 5 additions and 3 deletions
|
@ -24,6 +24,8 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
formatWithColor = color: "<b><span foreground='${color}'>%s</span></b>\n%b";
|
||||||
|
|
||||||
getConfig = name:
|
getConfig = name:
|
||||||
if name == "moon" then configs.moon
|
if name == "moon" then configs.moon
|
||||||
else if name == "dawn" then configs.dawn
|
else if name == "dawn" then configs.dawn
|
||||||
|
@ -56,20 +58,20 @@ in
|
||||||
inherit (selectedConfig.urgency_low) background highlight;
|
inherit (selectedConfig.urgency_low) background highlight;
|
||||||
frame_color = highlight;
|
frame_color = highlight;
|
||||||
default_icon = "dialog-information";
|
default_icon = "dialog-information";
|
||||||
format = "<b><span foreground='${highlight}'>%s</span></b>\n%b";
|
format = formatWithColor highlight;
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_normal = rec {
|
urgency_normal = rec {
|
||||||
inherit (selectedConfig.urgency_normal) background highlight;
|
inherit (selectedConfig.urgency_normal) background highlight;
|
||||||
frame_color = highlight;
|
frame_color = highlight;
|
||||||
default_icon = "dialog-warning";
|
default_icon = "dialog-warning";
|
||||||
format = "<b><span foreground='${highlight}'>%s</span></b>\n%b";
|
format = formatWithColor highlight;
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_critical = rec {
|
urgency_critical = rec {
|
||||||
inherit (selectedConfig.urgency_critical) background highlight;
|
inherit (selectedConfig.urgency_critical) background highlight;
|
||||||
frame_color = highlight;
|
frame_color = highlight;
|
||||||
default_icon = "dialog-error";
|
default_icon = "dialog-error";
|
||||||
format = "<b><span foreground='${highlight}'>%s</span></b>\n%b";
|
format = formatWithColor highlight;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue