diff options
| author | brustybee <bee@4d2.org> | 2026-03-07 14:48:22 +0530 |
|---|---|---|
| committer | brustybee <bee@4d2.org> | 2026-03-07 14:48:22 +0530 |
| commit | 981bf88867a7d80c44708f0fc305ce41109f439c (patch) | |
| tree | 3539976a27252255b42769ca4f5f410564f8601d /common/programs | |
| parent | 9a6b7c9daddfbed3ad1649742210a901864bd3aa (diff) | |
Add dunst and update its matugen temp
Diffstat (limited to 'common/programs')
| -rw-r--r-- | common/programs/dunst.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/common/programs/dunst.nix b/common/programs/dunst.nix new file mode 100644 index 0000000..d7d9348 --- /dev/null +++ b/common/programs/dunst.nix @@ -0,0 +1,43 @@ +{ + lib, + config, + pkgs, + ... +}: +let + playSound = pkgs.writeShellScriptBin "play-notification-sound" '' + ${pkgs.libcanberra-gtk3}/bin/canberra-gtk-play -i message + ''; +in +{ + services.dunst = { + enable = true; + settings = { + global = { + font = "monospace 11"; + corner_radius = 0; + frame_width = 2; + markup = "yes"; + browser = "zen --new-tab"; + + origin = "top-right"; + offset = "(10, 10)"; + }; + urgency_low = { + timeout = 3; + }; + + urgency_normal = { + timeout = 5; + }; + + urgency_critical = { + timeout = 0; + }; + play_sound = { + summary = "*"; + script = "${playSound}/bin/play-notification-sound"; + }; + }; + }; +} |
