-
Notifications
You must be signed in to change notification settings - Fork 0
/
dunst.nix
82 lines (75 loc) · 1.9 KB
/
dunst.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{ config, pkgs, lib, themes, ... }:
with lib;
let
cfg = config.custom.de.dunst;
in
{
options = {
custom.de.dunst = {
enable = mkOption {
default = false;
};
};
};
config = mkIf cfg.enable {
home.packages = [
pkgs.libnotify
];
services.dunst = {
enable = true;
settings = {
global = {
font = "${themes.font}";
allow_markup = true;
format = ''<b>%s</b> %p\n%b\n<span size="7500">%a</span>'';
max_icon_size = 80;
corner_radius=10;
sort = "yes";
indicate_hidden = "yes";
alignment = "left";
bounce_freq = 5;
show_age_threshold = 60;
word_wrap = "yes";
ignore_newline = "no";
geometry = "400x5-15-30";
shrink = "yes";
transparency = 40;
idle_threshold = 1;
monitor = 0;
follow = "none";
sticky_history = "yes";
history_length = 20;
show_indicators = "yes";
line_height = 0;
separator_height = 1;
padding = 8;
horizontal_padding = 10;
separator_color = "${themes.blue}";
startup_notification = false;
dmenu = "${pkgs.dmenu}/bin/dmenu -p dunst";
browser = "brave";
icon_position = "left";
};
frame = {
width = 1;
color = "${themes.blue}";
};
urgency_low = {
background = "${themes.background}";
foreground = "${themes.foreground}";
timeout = 10;
};
urgency_normal = {
background = "${themes.background}";
foreground = "${themes.foreground}";
timeout = 10;
};
urgency_critical = {
background = "${themes.background}";
foreground = "${themes.red}";
timeout = 0;
};
};
};
};
}