98 lines
3.5 KiB
Nix
Raw Normal View History

2023-11-04 02:28:27 +01:00
{ lib, config, pkgs, ... }: {
config = lib.mkIf (config.homecfg.wm == "Wayland") {
home.packages = with pkgs; [ libnotify ];
services.dunst = {
enable = true;
#waylandDisplay = "DP-2";
settings = {
global = {
follow = "mouse";
height = "200";
2023-11-29 23:50:40 +01:00
width = "350";
2023-11-04 02:28:27 +01:00
scale = "0";
origin = "top-right";
2024-02-22 00:04:21 +01:00
offset = "${
toString ((lib.strings.toInt config.colorScheme.palette.gaps-bar)
+ (lib.strings.toInt config.colorScheme.palette.gaps-screen))
}x${config.colorScheme.palette.gaps-screen}";
2023-11-04 02:28:27 +01:00
notification_limit = "0";
progress_bar = "true";
progress_bar_height = "10";
2023-11-29 23:50:40 +01:00
progress_bar_frame_width = "1";
progress_bar_min_width = "150";
progress_bar_max_width = "350";
2023-11-04 02:28:27 +01:00
indicate_hidden = "yes";
transparency = "0";
separator_height = "2";
padding = "12";
horizontal_padding = "15";
text_icon_padding = "0";
frame_width = "${config.colorScheme.palette.border-width}";
frame_color = "#${config.colorScheme.palette.base04}";
2023-11-04 02:28:27 +01:00
separator_color = "auto";
sort = "yes";
font = "IBM Plex Mono 14";
markup = "full";
format = ''<b>%s</b>\n<span size="small">%b</span>'';
alignment = "center";
vertical_alignment = "center";
show_age_threshold = "60";
ellipsize = "end";
ignore_newline = "no";
stack_duplicates = "true";
hide_duplicate_count = "false";
show_indicators = "yes";
min_icon_size = 32;
max_icon_size = 64;
icon_path =
2023-11-21 16:52:35 +01:00
"${pkgs.tela-circle-icon-theme}/share/icons/Tela-circle-dark/32/status:${pkgs.tela-circle-icon-theme}/share/icons/Tela-circle-dark/32/device ";
icon_theme = "Tela-circle-dark";
2023-11-04 02:28:27 +01:00
enable_recursive_icon_lookup = "true";
sticky_history = "yes";
history_length = "20";
dmenu = "wofi --show dmenu -p dunst:";
browser = "/usr/bin/xdg-open";
always_run_script = "true";
title = "Dunst";
class = "Dunst";
corner_radius = "${config.colorScheme.palette.border-radius}";
2023-11-04 02:28:27 +01:00
ignore_dbusclose = "false";
layer = "top";
force_xwayland = "true";
force_xinerama = "false";
mouse_left_click = "close_current";
mouse_middle_click = "context";
mouse_right_click = "do_action";
};
urgency_low = {
background = "#${config.colorScheme.palette.base01}";
foreground = "#${config.colorScheme.palette.base07}";
frame_color = "#${config.colorScheme.palette.base03}";
2023-11-04 02:28:27 +01:00
timeout = "3";
highlight = "#${config.colorScheme.palette.base0B}";
2023-11-04 02:28:27 +01:00
};
urgency_normal = {
background = "#${config.colorScheme.palette.base01}";
foreground = "#${config.colorScheme.palette.base07}";
frame_color = "#${config.colorScheme.palette.base04}";
2023-11-04 02:28:27 +01:00
timeout = "5";
highlight = "#${config.colorScheme.palette.base0C}";
2023-11-04 02:28:27 +01:00
};
urgency_critical = {
background = "#${config.colorScheme.palette.base01}";
foreground = "#${config.colorScheme.palette.base0F}";
frame_color = "#${config.colorScheme.palette.base0F}";
2023-11-04 02:28:27 +01:00
timeout = "10";
highlight = "#${config.colorScheme.palette.base0E}";
2023-11-04 02:28:27 +01:00
};
};
};
};
}