Tweak dunst

This commit is contained in:
Paul-Henri Froidmont 2023-03-27 01:32:04 +02:00
parent d359d0dda1
commit 0ab0d39bb8
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE

View file

@ -4,55 +4,63 @@ with lib;
with lib.my; with lib.my;
let cfg = config.modules.desktop.dunst; let cfg = config.modules.desktop.dunst;
in { in {
options.modules.desktop.dunst = { options.modules.desktop.dunst = { enable = mkBoolOpt false; };
enable = mkBoolOpt false;
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${config.user.name} = { home-manager.users.${config.user.name} = {
services.dunst = services.dunst = {
{ enable = true;
enable = true; settings = {
settings = { global = {
global = { alignment = "left";
monitor = 0; monitor = 0;
geometry = "350x5-30+50"; browser = "firefox -new-tab";
transparency = 10; corner_radius = 2;
font = "monospace 14"; dmenu = "${pkgs.rofi}/bin/rofi -dmenu -p dunst";
idle_threshold = 120; follow = "none";
allow_markup = "yes"; origin = "top-right";
format = "<b>%s</b>\n%b"; width = 440;
show_age_threshold = 300; offset = "26x26";
word_wrap = "yes"; history_length = 20;
sticky_history = "yes"; icon_position = "right";
sort = "yes"; horizontal_padding = 16;
}; ignore_newline = "no";
frame = { separator_color = "auto";
width = 3; separator_height = 4;
color = "#ebdbb2"; line_height = 0;
}; max_icon_size = 64;
shortcuts = { padding = 20;
close = "ctrl+space"; shrink = "no";
close_all = "ctrl+shift+space"; transparency = 5;
history = "ctrl+grave"; font = "monospace 14";
context = "ctrl+shift+period"; idle_threshold = 120;
}; indicate_hidden = "yes";
urgency_low = { markup = "full";
foreground = "#ebdbb2"; format = "<b>%s (%a)</b>\\n%b";
background = "#32302f"; show_age_threshold = 60;
timeout = 10; show_indicators = "yes";
}; word_wrap = "yes";
urgency_normal = { sticky_history = "yes";
foreground = "#ebdbb2"; sort = "yes";
background = "#32302f"; frame_width = 1;
timeout = 10; frame_color = "#1d2021";
}; };
urgency_critical = { urgency_low = {
foreground = "#ebdbb2"; foreground = "#ebdbb2";
background = "#32302f"; background = "#3c3836";
timeout = 10; timeout = 8;
}; };
urgency_normal = {
foreground = "#ebdbb2";
background = "#32302f";
timeout = 14;
};
urgency_critical = {
foreground = "#32302f";
background = "#cc241d";
timeout = 0;
}; };
}; };
};
}; };
}; };
} }