nix-dotfiles/hm_modules/dunst.nix

49 lines
1.4 KiB
Nix

{ pkgs, ... }:
with pkgs.lib.nix-rice;
let strPalette = palette.toRGBHex pkgs.rice.colorPalette;
in
{
home.packages = with pkgs; [ dunst rice.font.normal.package ];
services.dunst = {
enable = true;
iconTheme = {
package = pkgs.qogir-icon-theme;
name = "Qogir";
};
settings = {
global = {
width = "(0, 320)";
height = 320;
notification_limit = 10;
transparency = 100 - float.round (pkgs.rice.opacity * 100);
frame_width = 1;
frame_color = strPalette.normal.blue;
separator_color = strPalette.normal.blue;
font = "${pkgs.rice.font.normal.name} 10";
dmenu = "${pkgs.rofi}/bin/rofi -dmenu -p dunst:";
browser = "${pkgs.xdg-utils}/bin/xdg-open";
# corner_radius = 8;
mouse_middle_click = "context";
};
urgency_low = {
inherit (strPalette) background foreground;
timeout = 10;
};
urgency_normal = {
inherit (strPalette) background foreground;
timeout = 10;
};
urgency_critical = {
inherit (strPalette) background foreground;
frame_color = strPalette.bright.red;
timeout = 0;
};
shortcuts = {
# close = "ctrl+space";
# close_all = "ctrl+shift+space";
# history = "ctrl+backslash";
# context = "ctrl+shift+period";
};
};
};
}