summaryrefslogtreecommitdiff
path: root/home/apps/wofi/default.nix
blob: 417a2c28c61365ded29732a8acf4cc6e4741dec8 (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.mkOverride 800 "wofi --show drun --prompt 'Seach Programs' --allow-images --no-actions --normal-window";

    programs.wofi = {
      enable = true;

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

      style = lib.template.mustache ./style.css.mustache config.theme;
    };
  };
}