nix-dotfiles/home/services/dunst.nix

67 lines
1.8 KiB
Nix
Raw Permalink Normal View History

2023-03-07 23:02:15 +01:00
{ pkgs, config, ... }:
2022-03-07 16:01:52 +01:00
{
services.dunst = {
enable = true;
iconTheme = {
2024-11-18 14:26:43 +01:00
package = pkgs.adwaita-icon-theme;
2022-03-07 16:01:52 +01:00
name = "Adwaita";
size = "32x32";
};
settings = {
global = {
2023-03-07 23:02:15 +01:00
title = "Dunst";
class = "Dunst";
browser = "${pkgs.xdg-utils}/bin/xdg-open";
offset = let
status-bar-height = config.services.polybar.settings."bar/top".height;
in "15x${toString (status-bar-height + 10)}";
corner_radius = 0;
font = "Droid Sans 9";
2022-03-07 16:01:52 +01:00
geometry = "300x5-30+50";
2023-03-07 23:02:15 +01:00
indicate_hidden = "yes";
markup = "full";
origin = "top-right";
separator_color = "frame";
separator_height = 2;
2022-03-07 16:01:52 +01:00
transparency = 10;
2023-03-07 23:02:15 +01:00
word_wrap = "yes";
alignment = "center";
vertical_alignment = "center";
progress_bar = true;
progress_bar_height = 10;
progress_bar_min_width = 150;
progress_bar_max_width = 300;
mouse_left_click = "close_current";
mouse_middle_click = "close_all";
mouse_right_click = "do_action, close_current";
2022-03-07 16:01:52 +01:00
};
2023-03-07 23:02:15 +01:00
urgency_low = {
frame_color = config.colors.defaultColorSet.blue;
foreground = config.colors.defaultColorSet.foreground;
background = config.colors.defaultColorSet.background;
timeout = 4;
};
2022-03-07 16:01:52 +01:00
urgency_normal = {
2023-03-07 23:02:15 +01:00
frame_color = config.colors.defaultColorSet.green;
foreground = config.colors.defaultColorSet.foreground;
background = config.colors.defaultColorSet.background;
timeout = 6;
};
urgency_critical = {
frame_color = config.colors.defaultColorSet.red;
foreground = config.colors.defaultColorSet.red;
background = config.colors.defaultColorSet.background;
timeout = 8;
2022-03-07 16:01:52 +01:00
};
};
};
}