summaryrefslogtreecommitdiff
path: root/home-manager/features/gui/desktops/niri/parts/fuzzel.nix
blob: 1d44625a1f75c31fa00f4b5b1c42923e9dbfec71 (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
{ 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 = 20;
          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";
        };
      };
    };
  };
}