From a3c0e621823b5f84b5bc8acfa2d1f59b7e4574ca Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 3 Aug 2024 17:28:17 -0400 Subject: [PATCH] mako: fixed icon theme and added notification sound --- homeManagerModules/services/mako/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/homeManagerModules/services/mako/default.nix b/homeManagerModules/services/mako/default.nix index a22d787e..e81dee82 100644 --- a/homeManagerModules/services/mako/default.nix +++ b/homeManagerModules/services/mako/default.nix @@ -6,21 +6,27 @@ }: { config = lib.mkIf config.ar.home.services.mako.enable { services.mako = { - enable = true; + actions = true; anchor = "top-center"; backgroundColor = "${config.ar.home.theme.colors.background}CC"; borderColor = "${config.ar.home.theme.colors.primary}EE"; - borderSize = 2; borderRadius = 10; + borderSize = 2; defaultTimeout = 10000; + enable = true; font = "${config.gtk.font.name} Regular ${toString config.gtk.font.size}"; height = 300; + iconPath = "${pkgs.papirus-icon-theme}/share/icons/Papirus/"; + icons = true; layer = "top"; + margin = "20,0"; padding = "15"; textColor = "${config.ar.home.theme.colors.text}"; width = 400; - margin = "20,0"; + extraConfig = '' + on-notify=exec ${lib.getExe pkgs.mpv} ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/message.oga + [mode=do-not-disturb] invisible=1 '';