nix-config/home/dunst.nix

60 lines
1.0 KiB
Nix
Raw Normal View History

2024-09-05 18:11:43 +02:00
{
config,
pkgs,
lib,
...
}:
let
inherit (lib) mkForce;
inherit (config.lib.stylix.colors.withHashtag)
base02
base03
base08
base0A
;
in
{
services.dunst = {
enable = true;
iconTheme = {
package = pkgs.papirus-icon-theme;
name = "Papirus";
};
settings = {
global = {
2024-09-04 19:32:56 +02:00
width = 370;
separator_height = 1;
padding = 24;
horizontal_padding = 24;
frame_width = 1;
sort = "update";
idle_threshold = 120;
alignment = "center";
word_wrap = "yes";
transparency = 5;
format = "<b>%s</b>: %b";
markup = "full";
min_icon_size = 32;
max_icon_size = 128;
highlight = mkForce base03;
};
urgency_low = {
foreground = mkForce base0A;
frame_color = mkForce base02;
};
urgency_normal.frame_color = mkForce base02;
urgency_critical = {
foreground = mkForce base08;
frame_color = mkForce base02;
};
};
};
}