summaryrefslogtreecommitdiff
path: root/modules/home-manager/personal/programs/rofi.nix
blob: a3fdad3a818ed596a92fd3437e149618eb665105 (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
{
  config,
  lib,
  pkgs,
  ...
}: {
  programs.rofi = {
    cycle = lib.mkDefault true;
    theme =
      lib.mkIf (config.lib ? stylix)
      (
        lib.mkForce
        (config.lib.stylix.colors {
          template = builtins.readFile config.personal.home.dotfiles.rofi;
          extension = ".rasi";
        })
      );
    plugins = with pkgs; [rofi-top rofi-calc rofi-emoji];
  };
  xdg.dataFile."rofi/themes/custom.rasi" = lib.mkForce {
    source = config.programs.rofi.theme;
    text = null;
  };
}