summaryrefslogtreecommitdiff
path: root/common/modules/terminal/foot.nix
blob: 76037763499583949130699bba706ad11e934b25 (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
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  config,
}:
let
  cfg = config.beeMods.terminal;
in
{
  config = lib.mkIf cfg.foot {
    programs.foot = {
      enable = true;
      settings = {
        main = {
          include =
            if
              config.beeMods.matugen.enable
              && config.beeMods.windowManagers.beeConfig.enable
              && !config.beeMods.windowManagers.noctalia
            then
              [ "~/.config/foot/themes/matugen" ]
            else
              [ "~/.config/foot/themes/noctalia" ];
          line-height = 13;
          letter-spacing = 0;
          vertical-letter-offset = 0;
          horizontal-letter-offset = 0;
          underline-offset = 2;

          pad = "${toString cfg.window.padding-x}x${toString cfg.window.padding-y} center";
          font = "${cfg.font.family}:size=${toString cfg.font.size}";

          dpi-aware = "no";
          # gamma-correct-blending = "yes";
          bold-text-in-bright = if cfg.font.bright_color_is_bold then "yes" else "no";
        };
        cursor = {
          beam-thickness = 1;
        };
        mouse = {
          hide-when-typing = "yes";
        };
        key-bindings = { };
      };
    };
  };
}