nix/modules/wm/dunst/default.nix

46 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2024-11-24 21:35:15 +01:00
{
lib,
config,
username,
...
}: {
options = {
dunst.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.dunst.enable {
home-manager.users.${username} = {
services.dunst = {
enable = true;
settings = {
global = {
2024-12-22 15:06:55 +01:00
background = "#${config.home-manager.users.${username}.stylix.base16Scheme.base01}";
foreground = "#${config.home-manager.users.${username}.stylix.base16Scheme.base05}";
2024-11-24 21:35:15 +01:00
padding = 8;
horizontal_padding = 8;
separator_height = 2;
frame_width = 4;
corner_radius = 5;
2024-12-22 15:06:55 +01:00
font = "${config.home-manager.users.${username}.stylix.fonts.monospace.name} 12";
2024-11-24 21:35:15 +01:00
alignment = "center";
vertical_alignment = "center";
ellipsize = "middle";
ignore_newline = false;
};
urgency_low = {
2024-12-22 15:06:55 +01:00
frame_color = "#${config.home-manager.users.${username}.stylix.base16Scheme.base0B}";
2024-11-24 21:35:15 +01:00
};
urgency_normal = {
2024-12-22 15:06:55 +01:00
frame_color = "#${config.home-manager.users.${username}.stylix.base16Scheme.base0D}";
2024-11-24 21:35:15 +01:00
};
urgency_critical = {
2024-12-22 15:06:55 +01:00
frame_color = "#${config.home-manager.users.${username}.stylix.base16Scheme.base08}";
2024-11-24 21:35:15 +01:00
};
};
};
};
};
}