nixos-configs/modules/desktop/dunst.nix

67 lines
1.8 KiB
Nix
Raw Normal View History

2023-03-21 10:37:27 +01:00
{ config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.dunst;
in {
2023-03-27 01:32:04 +02:00
options.modules.desktop.dunst = { enable = mkBoolOpt false; };
2023-03-21 10:37:27 +01:00
config = mkIf cfg.enable {
home-manager.users.${config.user.name} = {
2023-03-27 01:32:04 +02:00
services.dunst = {
enable = true;
settings = {
global = {
alignment = "left";
monitor = 0;
browser = "firefox -new-tab";
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";
idle_threshold = 120;
indicate_hidden = "yes";
markup = "full";
format = "<b>%s (%a)</b>\\n%b";
show_age_threshold = 60;
show_indicators = "yes";
word_wrap = "yes";
sticky_history = "yes";
sort = "yes";
frame_width = 1;
frame_color = "#1d2021";
};
urgency_low = {
foreground = "#ebdbb2";
background = "#3c3836";
timeout = 8;
};
urgency_normal = {
foreground = "#ebdbb2";
background = "#32302f";
timeout = 14;
};
urgency_critical = {
foreground = "#32302f";
background = "#cc241d";
timeout = 0;
2023-03-21 10:37:27 +01:00
};
};
2023-03-27 01:32:04 +02:00
};
2023-03-21 10:37:27 +01:00
};
};
}