From 5db11f73ba835872704ea2d2a612357a1da418cf Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 12 Mar 2022 19:45:27 -0800 Subject: notification: fix timeout and document --- users/fcuny/desktop/wm/notification.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'users/fcuny/desktop/wm') diff --git a/users/fcuny/desktop/wm/notification.nix b/users/fcuny/desktop/wm/notification.nix index c0b0415..ad801c1 100644 --- a/users/fcuny/desktop/wm/notification.nix +++ b/users/fcuny/desktop/wm/notification.nix @@ -6,20 +6,20 @@ ]; systemd.user.services.mako = { - Service = { - ExecStart = "${pkgs.mako}/bin/mako"; - }; - Install = { - WantedBy = [ "sway-session.target" ]; - }; + Service = { ExecStart = "${pkgs.mako}/bin/mako"; }; + Install = { WantedBy = [ "sway-session.target" ]; }; }; + # All the options are documented via `man 5 mako` programs.mako = { enable = true; layer = "overlay"; - defaultTimeout = 300; - maxVisible = 10; + # The timeout value is in millisecond + defaultTimeout = 30000; + # The maximum number of notifications + maxVisible = 3; maxIconSize = 24; + # Enable pango markup (see https://docs.gtk.org/Pango/pango_markup.html) markup = true; actions = true; }; -- cgit 1.4.1