nix-config/home/dunst.nix
Donovan Glover 54d9750b65
dunst: Show new notifications on top
Seems a bit more natural than having them show up on the bottom.
2024-09-05 17:07:28 -04:00

60 lines
1.0 KiB
Nix

{
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 = {
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;
};
};
};
}