summaryrefslogtreecommitdiff
path: root/users/kassouni/palette/default.nix
blob: 06005105fa0bda5454ea30c48fc591fdf1f167cc (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
31
32
33
34
35
36
37
38
{ lib, ... }:
{
  imports = [
    ./bluetooth.nix
    ./reboot.nix
    ./rebuild.nix
    ./screenshot.nix
    ./shutdown.nix
    ./rofi-palette.nix
    ./fuzzel-palette.nix
  ];

  options.kassouni.palette.commands = lib.mkOption {
    type = lib.types.listOf (
      lib.types.submodule {
        options = {
          name = lib.mkOption {
            type = lib.types.str;
            description = "Label shown in the palette menu.";
          };
          icon = lib.mkOption {
            type = lib.types.str;
            description = "Nerd Font glyph shown before the label.";
          };
          exe = lib.mkOption {
            type = lib.types.package;
            description = "Executable to run when the entry is selected.";
          };
        };
      }
    );
    default = [ ];
    description = ''
      Entries shown in the command palette. Rendered by both front ends:
      `open-palette` (rofi, X11) and `open-palette-fuzzel` (fuzzel, Wayland).
    '';
  };
}