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,52 +4,60 @@ 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;
dmenu = "${pkgs.rofi}/bin/rofi -dmenu -p dunst";
follow = "none";
origin = "top-right";
width = 440;
offset = "26x26";
history_length = 20;
icon_position = "right";
horizontal_padding = 16;
ignore_newline = "no";
separator_color = "auto";
separator_height = 4;
line_height = 0;
max_icon_size = 64;
padding = 20;
shrink = "no";
transparency = 5;
font = "monospace 14"; font = "monospace 14";
idle_threshold = 120; idle_threshold = 120;
allow_markup = "yes"; indicate_hidden = "yes";
format = "<b>%s</b>\n%b"; markup = "full";
show_age_threshold = 300; format = "<b>%s (%a)</b>\\n%b";
show_age_threshold = 60;
show_indicators = "yes";
word_wrap = "yes"; word_wrap = "yes";
sticky_history = "yes"; sticky_history = "yes";
sort = "yes"; sort = "yes";
}; frame_width = 1;
frame = { frame_color = "#1d2021";
width = 3;
color = "#ebdbb2";
};
shortcuts = {
close = "ctrl+space";
close_all = "ctrl+shift+space";
history = "ctrl+grave";
context = "ctrl+shift+period";
}; };
urgency_low = { urgency_low = {
foreground = "#ebdbb2"; foreground = "#ebdbb2";
background = "#32302f"; background = "#3c3836";
timeout = 10; timeout = 8;
}; };
urgency_normal = { urgency_normal = {
foreground = "#ebdbb2"; foreground = "#ebdbb2";
background = "#32302f"; background = "#32302f";
timeout = 10; timeout = 14;
}; };
urgency_critical = { urgency_critical = {
foreground = "#ebdbb2"; foreground = "#32302f";
background = "#32302f"; background = "#cc241d";
timeout = 10; timeout = 0;
}; };
}; };
}; };