Files
nixos/modules/dunst.nix
2026-09-26 02:14:34 +02:00

95 lines
2.3 KiB
Nix

{
config,
lib,
pkgs,
...
}:
{
services.dunst = {
enable = true;
enableWayland = true;
settings = {
global = {
alignment = "left";
always_run_script = true;
class = "Dunst";
corner_radius = 10;
corners = "bottom-left, top-right";
ellipsize = "middle";
enable_posix_regex = true;
follow = "mouse";
font = "Iosevka Mono Nerd Font Medium 10";
force_xinerama = false;
force_xwayland = false;
format = "<span weight='bold'>%s</span>\n%b";
frame_color = "#9399b2";
frame_width = 0;
hide_duplicate_count = false;
history_length = 20;
horizontal_padding = 15;
icon_position = "left";
idle_threshold = 120;
ignore_dbusclose = false;
ignore_newline = false;
indicate_hidden = true;
line_height = 0;
markup = "full";
max_icon_size = 32;
min_icon_size = 0;
mouse_left_click = "do_action, close_current";
mouse_middle_click = "do_action, close_current";
mouse_right_click = "close_all";
offset = "3x3";
padding = 15;
progress_bar_frame_width = 1;
progress_bar_height = 10;
progress_bar_max_width = 400;
progress_bar_min_width = 150;
progress_bar = true;
separator_color = "frame";
separator_height = 2;
show_age_threshold = 60;
show_indicators = true;
shrink = false;
sort = true;
stack_duplicates = true;
sticky_history = true;
text_icon_padding = 15;
title = "Dunst";
vertical_alignment = "center";
width = 250;
word_wrap = false;
};
experimental.per_monitor_dpi = false;
urgency_low = {
background = "#181825CC";
foreground = "#CDD6F4";
timeout = 10;
};
urgency_normal = {
background = "#181825CC";
foreground = "#CDD6F4";
frame_color = "#b4befe";
timeout = 10;
};
urgency_high = {
background = "#181825CC";
foreground = "#F38BA8";
format = "<b>%s</b>\n%b";
frame_color = "#F38BA8";
timeout = 60;
};
fcitx5-filter = {
summary = "Wayland Diagnose";
skip_display = true;
};
};
};
}