From ea81d831371f31fe1f6ceee66771f9fa54ce2049 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 29 Sep 2023 07:51:31 +0200 Subject: [PATCH] feat: add dunst --- home-manager/sway/default.nix | 1 + home-manager/sway/dunst.nix | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 home-manager/sway/dunst.nix diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index 5082fb9..af0bcf2 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -6,6 +6,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; + }; + }; + }; +}