about summary refs log tree commit diff
path: root/users/fcuny/desktop
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-03-12 19:45:27 -0800
committerFranck Cuny <franck@fcuny.net>2022-03-12 19:45:27 -0800
commit5db11f73ba835872704ea2d2a612357a1da418cf (patch)
tree4fbfb17464e052a8c7c1dc4e924ffbfc7d63027c /users/fcuny/desktop
parentdevel: add more packages (diff)
downloadworld-5db11f73ba835872704ea2d2a612357a1da418cf.tar.gz
notification: fix timeout and document
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;
   };