aboutsummaryrefslogtreecommitdiff
path: root/programs/fuzzel.nix
blob: 8a879117a2f78358b7563c681b7f21d86ac17117 (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
{ config
, pkgs
, theme
, font
, ...
}:

with theme;
let
  fuzzelColor = themeColor: (builtins.replaceStrings [ "#" ] [ "" ] themeColor) + "ff";
in
{
  programs.fuzzel = {
    enable = true;
    settings = {
      main = {
        font = "${font.name}:size=12";
        prompt = "";
        anchor = "top-left";
        icons-enabled = "no";
        fields = "filename,exec,name,generic";
        horizontal-pad = 12;
        vertical-pad = 12;
      };
      colors = {
        background = "${fuzzelColor theme.base00}";
        text = "${fuzzelColor theme.base02}";
        match = "${fuzzelColor theme.base0C}";
        selection = "${fuzzelColor theme.base00}";
        selection-text = "${fuzzelColor theme.base05}";
        selection-match = "${fuzzelColor theme.base0C}";
        border = "${fuzzelColor theme.base02}";
      };
      border = {
        width = 2;
        radius = 0;
      };
    };
  };
}