aboutsummaryrefslogtreecommitdiff
path: root/modules/foot.nix
blob: 9804db420c449e381e00caba7fc69d71dc6a10ed (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
52
53
54
55
56
{ config, lib, pkgs, ... }:

let
  cfg = config.foot;
in {
  options.foot.enable = lib.mkEnableOption "Enable and configure the Foot terminal emulator";

  config = lib.mkIf cfg.enable {
    home.packages = with pkgs; [
      (nerdfonts.override { fonts = [ "SpaceMono" "IBMPlexMono" "Terminus" ]; })
    ];

    programs.foot = {
      enable = true;
      settings = {
        main = {
          pad = "10x10";
          font = "SpaceMono Nerd Font Mono:size=10";
          line-height = 12;
        };

	cursor = {
	  style = "underline";
	  unfocused-style = "unchanged";
	  blink = true;
	};

        colors = {
	  alpha=0.9;
	  # Gruvbox Theme
	  background = "000000";
          foreground = "ebdbb2";

          regular0 = "282828";
          regular1 = "cc241d";
          regular2 = "98971a";
          regular3 = "d79921";
          regular4 = "458588";
          regular5 = "b16286";
          regular6 = "689d6a";
          regular7 = "a89984";

          bright0 = "928374";
          bright1 = "fb4934";
          bright2 = "b8bb26";
          bright3 = "fabd2f";
          bright4 = "83a598";
          bright5 = "d3869b";
          bright6 = "8ec07c";
          bright7 = "ebdbb2";
        };
      };
    };
  };
}