summaryrefslogtreecommitdiff
path: root/home/apps/wofi/default.nix
blob: 2de9f456341833dd764cfe5d43e0a6a50422621f (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
{
  config,
  lib,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.apps.wofi;
in {
  config = mkIf cfg.enable {
    default.appLauncher = lib.mkDefault "wofi --show drun --prompt 'Seach Programs'";

    programs.wofi = {
      enable = true;

      settings = {
        key_expand = "Tab";
        term = "kitty";
        matching = "multi-contains";
        insensitive = true;
        gtk_dark = true;
        hide_scroll = true;
      };

      style = import ./style.nix {theme = config.theme;};
    };
  };
}