refactoring rose-pine-dunst.nix

This commit is contained in:
Zynh Ludwig 2024-07-01 22:54:12 -07:00
parent ecedb9774d
commit 647a8f2073

View file

@ -24,6 +24,8 @@ let
};
};
formatWithColor = color: "<b><span foreground='${color}'>%s</span></b>\n%b";
getConfig = name:
if name == "moon" then configs.moon
else if name == "dawn" then configs.dawn
@ -56,20 +58,20 @@ in
inherit (selectedConfig.urgency_low) background highlight;
frame_color = highlight;
default_icon = "dialog-information";
format = "<b><span foreground='${highlight}'>%s</span></b>\n%b";
format = formatWithColor highlight;
};
urgency_normal = rec {
inherit (selectedConfig.urgency_normal) background highlight;
frame_color = highlight;
default_icon = "dialog-warning";
format = "<b><span foreground='${highlight}'>%s</span></b>\n%b";
format = formatWithColor highlight;
};
urgency_critical = rec {
inherit (selectedConfig.urgency_critical) background highlight;
frame_color = highlight;
default_icon = "dialog-error";
format = "<b><span foreground='${highlight}'>%s</span></b>\n%b";
format = formatWithColor highlight;
};
}