summaryrefslogtreecommitdiff
path: root/home/apps/mako.nix
blob: 52e7762d591c40a34821c33af206a110d5e57906 (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
{
  config,
  lib,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.apps.mako;
in {
  config = mkIf cfg.enable {
    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.base}";
        progress-color = "#${config.theme.colors.primary}";
        text-color = "#${config.theme.colors.text}";

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

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