summaryrefslogtreecommitdiff
path: root/nix_archive/nix/programs/foot.nix
blob: 5a322eb6cfe68adcd6bf6069bd704ce5d589c639 (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
47
48
49
50
51
{ config, pkgs, ... }:
let
  loc = config.local;
  colo = loc.scheme;
in {
  environment.sessionVariables = {
    TERMINAL = "${pkgs.foot}/bin/footclient";
  };
  home-manager.users.andrew = {
    programs.foot = {
      enable = true;
      server.enable = true;
      settings = {
        main = {
          font = "${loc.font.name}:size=${toString loc.font.size}";
        };
        colors-dark = {
          foreground = "${colo.foreground}";
          background = "${colo.background}";
          regular0 = "${colo.color0}";
          regular1 = "${colo.color1}";
          regular2 = "${colo.color2}";
          regular3 = "${colo.color3}";
          regular4 = "${colo.color4}";
          regular5 = "${colo.color5}";
          regular6 = "${colo.color6}";
          regular7 = "${colo.color7}";
          bright0 = "${colo.color8}";
          bright1 = "${colo.color9}";
          bright2 = "${colo.color10}";
          bright3 = "${colo.color11}";
          bright4 = "${colo.color12}";
          bright5 = "${colo.color13}";
          bright6 = "${colo.color14}";
          bright7 = "${colo.color15}";
          alpha = "1.0";
        };
      };
    };
    wayland.windowManager.sway = {
      config = rec {
        terminal = "${pkgs.foot}/bin/footclient";
        keybindings = let
          mod1 = "Mod1";
        in {
          "${mod1}+Return" = "exec ${terminal}";
        };
      };
    };
  };
}