about summary refs log tree commit diff
path: root/users/fcuny/desktop/wm/notification.nix
blob: c0b0415393be79d52f40c2810d2100b9e7d24251 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ config, lib, pkgs, ... }:

{
  home.packages = [
    pkgs.libnotify # to send notifications
  ];

  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;
  };
}