diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index c2ce93f..a5526f9 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -8,6 +8,7 @@ in { imports = [ ./i3status-rust.nix + ./dunst.nix ]; home.packages = with pkgs; [ diff --git a/home-manager/sway/dunst.nix b/home-manager/sway/dunst.nix new file mode 100644 index 0000000..f7078d5 --- /dev/null +++ b/home-manager/sway/dunst.nix @@ -0,0 +1,34 @@ +{ config, lib, pkgs, user, ... }: +{ + services.dunst = { + enable = true; + settings = { + global = { + follow = "keyboard"; + font = "DejaVu Sans Mono 11"; + frame_width = 1; + }; + + urgency_low = { + frame_color = "#268bd2"; + foreground = "#eee8d5"; + background = "#002b36"; + timeout = 4; + }; + + urgency_normal = { + frame_color = "#859900"; + foreground = "#eee8d5"; + background = "#002b36"; + timeout = 6; + }; + + urgency_critical = { + frame_color = "#dc322f"; + foreground = "#eee8d5"; + background = "#002b36"; + timeout = 8; + }; + }; + }; +}