aboutsummaryrefslogtreecommitdiff
path: root/modules/tofi.nix
blob: 1b6611289640f32e82a7f6328b33b57ac1d7da7f (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
57
58
59
60
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.modules.tofi;
  scheme = config.modules.scheme;
in
{
  options.modules.tofi = {
    enable = lib.mkEnableOption "tofi";
  };

  config = lib.mkIf cfg.enable {
    home.packages = with pkgs; [
    ];
    programs.tofi = {
      enable = true;
      settings = {
        # font = "ComicShannsMono Nerd Font Mono 10";
        # font = "GoMono Nerd Font Propo";
        font = "${pkgs.inter}/share/fonts/tuetype/InterVariable.ttf";
        "font-size" = 24;
        hint-font = false;

        # width = "60%";
        # height = "50%";
        width = "100%";
        height = "100%";
        padding-left = "35%";
        padding-top = "35%";

        input-color = scheme.base05;
        "text-color" = scheme.base02;
        "placeholder-color" = scheme.base00;

        "selection-background" = scheme.base00; # 151515
        "selection-color" = scheme.base05;
        "selection-background-padding" = "0, -1";

        "text-cursor-style" = "bar";
        "text-cursor-color" = scheme.base05;

        "prompt-text" = "\"\"";

        "background-color" = scheme.base00;
        num-results = 5;

        "outline-width" = 0;
        "border-width" = 0;
        hide-cursor = true;
        "hidden-character" = "";
        terminal = "foot";
        ascii-input = true;
      };
    };
  };
}