summaryrefslogtreecommitdiff
path: root/home-manager/features/gui/desktops/niri/parts/fuzzel.nix
blob: ea6253aae2cb21abff335d6635b2be8a52e5c610 (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
{ config, lib, ... }: let
  cfg = config.features.gui.desktops.niri.parts.fuzzel;
  aes = config.aesthetics;
in {
  options.features.gui.desktops.niri.parts.fuzzel.enable = lib.mkEnableOption "fuzzel";
  config = lib.mkIf cfg.enable {
    programs.fuzzel = {
      enable = true;
      settings = {
        main = {
          width = 24;
          horizontal-pad = 16;
          vertical-pad = 16;
          inner-pad = 8;
          terminal = config.default-applications.terminal-emulator.runTuiCommand;
        };
        border = {
          width = 3;
          radius = 4;
        };
        colors = with aes.scheme; {
          background = "${base00}ff";
          selection = "${base00}ff";
          selection-text = "${base0C}ff";
          selection-match = "${base0E}ff";
          match = "${base0E}ff";
          border = "${base0C}ff";
          text = "${base05}ff";
        };
      };
    };
  };
}