mirror of
https://github.com/kmein/niveum
synced 2026-03-29 16:51:07 +02:00
modularize
This commit is contained in:
62
configs/dunst.nix
Normal file
62
configs/dunst.nix
Normal file
@@ -0,0 +1,62 @@
|
||||
{ config, pkgs, ... }:
|
||||
let theme = import <dot/theme.nix>;
|
||||
in {
|
||||
home-manager.users.me.services.dunst = {
|
||||
enable = true;
|
||||
iconTheme = config.niveum.theme.icon;
|
||||
settings = {
|
||||
global = {
|
||||
transparency = 10;
|
||||
font = "${theme.terminalFont.name} ${toString theme.terminalFont.size}";
|
||||
geometry = "200x5-30+20";
|
||||
frame_color = theme.invertedColorScheme.background;
|
||||
follow = "mouse";
|
||||
indicate_hidden = true;
|
||||
notification_height = 0;
|
||||
separator_height = 2;
|
||||
padding = 8;
|
||||
horizontal_padding = 8;
|
||||
separator_color = "auto";
|
||||
sort = true;
|
||||
markup = "full";
|
||||
format = ''%a\n<b>%s</b>\n%b'';
|
||||
alignment = "left";
|
||||
show_age_threshold = 60;
|
||||
bounce_freq = 0;
|
||||
word_wrap = true;
|
||||
ellipsize = "middle";
|
||||
ignore_newline = false;
|
||||
stack_duplicates = true;
|
||||
hide_duplicate_count = false;
|
||||
max_icon_size = 32;
|
||||
sticky_history = true;
|
||||
history_length = 20;
|
||||
dmenu = "${pkgs.rofi}/bin/rofi -display-run dunst -show run";
|
||||
browser = config.niveum.applications.browser;
|
||||
verbosity = "mesg";
|
||||
corner_radius = 0;
|
||||
mouse_left_click = "do_action";
|
||||
mouse_right_click = "close_current";
|
||||
mouse_middle_click = "close_all";
|
||||
};
|
||||
urgency_low = {
|
||||
frame_color = theme.invertedColorScheme.background;
|
||||
background = theme.invertedColorScheme.background;
|
||||
foreground = theme.invertedColorScheme.foreground;
|
||||
timeout = 5;
|
||||
};
|
||||
urgency_normal = {
|
||||
frame_color = theme.invertedColorScheme.background;
|
||||
background = theme.invertedColorScheme.background;
|
||||
foreground = theme.invertedColorScheme.foreground;
|
||||
timeout = 10;
|
||||
};
|
||||
urgency_critical = {
|
||||
frame_color = theme.invertedColorScheme.red.dark;
|
||||
background = theme.invertedColorScheme.red.dark;
|
||||
foreground = theme.invertedColorScheme.foreground;
|
||||
timeout = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user