summaryrefslogtreecommitdiff
path: root/modules/desktop/mako.nix
blob: 17ed94ff82b03976e158e1c651e3fbe27597a2d9 (plain)
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
27
28
29
30
31
32
33
34
35
{
  config,
  lib,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.desktop;
in {
  config = mkIf cfg.mako {
    home-manager.users.${config.user} = {
      services.mako = {
        enable = false; # now using astal

        settings = {
          font = "${config.theme.font.monospace} 11";

          margin = toString config.theme.outerGap;
          padding = toString config.theme.innerGap;

          background-color = "#${config.theme.colors.bg}";
          progress-color = "#${config.theme.colors.primary}";
          text-color = "#${config.theme.colors.fg}";

          border-color = "#${config.theme.colors.fg}";
          border-size = config.theme.borderWidth;
          border-radius = config.theme.outerRadius;

          default-timeout = 5000;
          layer = "overlay";
          icons = true;
        };
      };
    };
  };
}