aboutsummaryrefslogtreecommitdiff
path: root/modules/desktop/home/environments/hyprland/fuzzel.nix
blob: 6dca3fb85de8e01e9959a8d69a79c7a6c3e08d47 (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
{
  lib,
  config,
  ...
}: let
  cfg = config.collinux.desktop.hyprland.components.fuzzel;
in
  lib.mkIf cfg.enable {
    programs.fuzzel = {
      enable = true;
      settings = {
        main = {
          prompt = "    ";
          dpi-aware = false;

          font = "Iosevka Nerd Font";
          line-height = 25;
          lines = 10;
          width = 30;

          horizontal-pad = 8;
          vertical-pad = 8;
        };
        border = {
          radius = 0;
          width = 2;
        };

        colors = lib.mkIf (cfg.theme == "catppuccin") {
          background = "1e1e2edd";
          text = "cdd6f4ff";
          prompt = "bac2deff";
          placeholder = "7f849cff";
          input = "cdd6f4ff";
          match = "89b4faff";
          selection = "585b70ff";
          selection-text = "cdd6f4ff";
          selection-match = "89b4faff";
          counter = "7f849cff";
          border = "89b4faff";
        };
      };
    };
  }