From 4af53751bbb70f60e1b4300b9fd7d136bc738e90 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 2 Oct 2019 17:28:38 +0200 Subject: Migrate dunst to home-manager --- user/modules/dunst.nix | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) (limited to 'user/modules') diff --git a/user/modules/dunst.nix b/user/modules/dunst.nix index 78268c04..5c8a46eb 100644 --- a/user/modules/dunst.nix +++ b/user/modules/dunst.nix @@ -1,8 +1,43 @@ { config, pkgs, ... }: { - xdg.configFile.dunst = { - recursive = true; - source = ../dunst/.config/dunst; + services.dunst = { + enable = true; + settings = { + global = { + font = "Monospace 13"; + geometry = "300x10-10+30"; + follow = "none"; + sticky_history = "yes"; + history_length = 20; + show_indicators = "yes"; + separator_height = 2; + padding = 8; + horizontal_padding = 8; + + separator_color = "frame"; + }; + frame = { + width = 1; + color = "#383838"; + }; + urgency_low = { + background = "#b8b8b8"; + foreground = "#f8f8f8"; + timeout = 10; + }; + + urgency_normal = { + background = "#7cafc2"; + foreground = "#f8f8f8"; + timeout = 10; + }; + + urgency_critical = { + background = "#ab4642"; + foreground = "#f8f8f8"; + timeout = 0; + }; + }; }; } -- cgit 1.4.1