diff --git a/apps/mako/default.nix b/apps/mako/default.nix new file mode 100644 index 0000000..f3ae16c --- /dev/null +++ b/apps/mako/default.nix @@ -0,0 +1,34 @@ +{pkgs, ...}: { + services.mako = { + enable = true; + + # Appearance + font = "Sans 11"; + width = 350; + height = 150; + margin = "10"; + padding = "15"; + borderSize = 2; + borderRadius = 8; + + # Behavior + defaultTimeout = 5000; + ignoreTimeout = false; + layer = "overlay"; + anchor = "top-right"; + + # Interaction + markup = true; + actions = true; + + # Grouping + groupBy = "app-name"; + maxVisible = 5; + sort = "-time"; + + # Load matugen colors + extraConfig = '' + !include matugen + ''; + }; +} diff --git a/apps/matugen/config.toml b/apps/matugen/config.toml index 225e982..1f6ff30 100644 --- a/apps/matugen/config.toml +++ b/apps/matugen/config.toml @@ -46,3 +46,8 @@ output_path = "~/.config/gtk-4.0/colors.css" input_path = "~/.config/matugen/templates/hyprlock" output_path = "~/.config/hypr/hyprlock-colors.conf" +[templates.mako] +input_path = "~/.config/matugen/templates/mako" +output_path = "~/.config/mako/matugen" +post_hook = "makoctl reload" + diff --git a/apps/matugen/templates/mako b/apps/matugen/templates/mako new file mode 100644 index 0000000..06ffbca --- /dev/null +++ b/apps/matugen/templates/mako @@ -0,0 +1,14 @@ +background-color=#{{colors.surface_container_high.default.hex_stripped}} +text-color=#{{colors.on_surface.default.hex_stripped}} +border-color=#{{colors.primary.default.hex_stripped}} +progress-color=over #{{colors.primary_container.default.hex_stripped}} + +[urgency=low] +border-color=#{{colors.tertiary.default.hex_stripped}} + +[urgency=normal] +border-color=#{{colors.primary.default.hex_stripped}} + +[urgency=high] +border-color=#{{colors.error.default.hex_stripped}} +default-timeout=0 diff --git a/modules/home/apps.nix b/modules/home/apps.nix index 504d9ed..04bb1fa 100644 --- a/modules/home/apps.nix +++ b/modules/home/apps.nix @@ -4,6 +4,7 @@ ../../apps/gemini ../../apps/firefox ../../apps/loupe + ../../apps/mako # ../../apps/starship ]; }