about summary refs log tree commit diff
path: root/users/fcuny
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/fcuny/desktop/wm/notification.nix16
1 files changed, 8 insertions, 8 deletions
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;
   };