diff options
| author | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 21:37:34 +0530 |
|---|---|---|
| committer | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 21:37:34 +0530 |
| commit | 0de067092c9dd19c3352554e39de73e172f29b42 (patch) | |
| tree | 4175503766405733846687efdb29657bb322dccd /common/modules/matugen/templates/matugen-dunst.nix | |
| parent | f1de2014dcd426e015a2638222160d9d349ea4e5 (diff) | |
Add modules
Diffstat (limited to 'common/modules/matugen/templates/matugen-dunst.nix')
| -rw-r--r-- | common/modules/matugen/templates/matugen-dunst.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/common/modules/matugen/templates/matugen-dunst.nix b/common/modules/matugen/templates/matugen-dunst.nix new file mode 100644 index 0000000..2f7d107 --- /dev/null +++ b/common/modules/matugen/templates/matugen-dunst.nix @@ -0,0 +1,44 @@ +{ + config, + pkgs, + ... +}: +let + playSound = pkgs.writeShellScriptBin "play-notification-sound" '' + ${pkgs.libcanberra-gtk3}/bin/canberra-gtk-play -i message + ''; +in +{ + xdg.configFile."matugen/templates/dunstrc" = { + text = '' + [global] + font = "Lilex Nerd Font 11" + corner_radius=0 + frame_width = 2 + markup = yes + plain_text = no + browser = zen --new-tab + + [play_sound] + summary = "*" + script = "${playSound}/bin/play-notification-sound" + + # --- Matugen Colors --- + frame_color = "{{colors.primary.default.hex}}" + separator_color = "{{colors.primary_container.default.hex}}" + + [urgency_low] + background = "{{colors.surface.default.hex}}" + foreground = "{{colors.on_surface.default.hex}}" + + [urgency_normal] + background = "{{colors.surface.default.hex}}" + foreground = "{{colors.on_surface.default.hex}}" + + [urgency_critical] + background = "{{colors.error_container.default.hex}}" + foreground = "{{colors.on_error_container.default.hex}}" + frame_color = "{{colors.error.default.hex}}" + ''; + }; +} |
