summaryrefslogtreecommitdiff
path: root/modules/home-manager/personal/programs/rofi.nix
blob: 229a29e7b6a74bd0ac046c72e3aa215b85da62d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  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";
        })
        .out);
    plugins = with pkgs; [rofi-top rofi-calc rofi-emoji];
  };
}