11.stylix/modules/dunst/hm.nix
NAHO 83bf151687
Some checks are pending
Label Merge Conflicts / conflicts (push) Waiting to run
dunst: set highlight color to match frame color (#2032)
Link: https://github.com/nix-community/stylix/pull/2032

Reviewed-by: dastarruer <ayushpramanik399@gmail.com>
(cherry picked from commit b09847414b)
2026-02-20 23:54:28 +01:00

50 lines
1.2 KiB
Nix

{ mkTarget, lib, ... }:
mkTarget {
config = [
(
{ fonts }:
{
services.dunst.settings.global.font =
"${fonts.sansSerif.name} ${toString fonts.sizes.popups}";
}
)
(
{ colors, opacity }:
{
services.dunst.settings =
with colors.withHashtag;
let
dunstOpacity = lib.toHexString (
((builtins.floor (opacity.popups * 100 + 0.5)) * 255) / 100
);
in
{
global = {
separator_color = base02;
};
urgency_low = {
background = base01 + dunstOpacity;
foreground = base05;
frame_color = base03;
highlight = base03;
};
urgency_normal = {
background = base01 + dunstOpacity;
foreground = base05;
frame_color = base0D;
highlight = base0D;
};
urgency_critical = {
background = base01 + dunstOpacity;
foreground = base05;
frame_color = base08;
highlight = base08;
};
};
}
)
];
}