From 0fa65e2210f015838af244872aa4472cc6c899ee Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 26 Feb 2022 20:07:27 -0800 Subject: mako: run with systemd --- users/fcuny/desktop/wm/notification.nix | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'users/fcuny') diff --git a/users/fcuny/desktop/wm/notification.nix b/users/fcuny/desktop/wm/notification.nix index 39d3fa8..c0b0415 100644 --- a/users/fcuny/desktop/wm/notification.nix +++ b/users/fcuny/desktop/wm/notification.nix @@ -5,11 +5,22 @@ pkgs.libnotify # to send notifications ]; - programs = { - mako = { - enable = true; - markup = true; - actions = true; + systemd.user.services.mako = { + Service = { + ExecStart = "${pkgs.mako}/bin/mako"; }; + Install = { + WantedBy = [ "sway-session.target" ]; + }; + }; + + programs.mako = { + enable = true; + layer = "overlay"; + defaultTimeout = 300; + maxVisible = 10; + maxIconSize = 24; + markup = true; + actions = true; }; } -- cgit 1.4.1