summaryrefslogtreecommitdiff
path: root/users/kassouni/palette/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/kassouni/palette/default.nix')
-rw-r--r--users/kassouni/palette/default.nix26
1 files changed, 5 insertions, 21 deletions
diff --git a/users/kassouni/palette/default.nix b/users/kassouni/palette/default.nix
index 403aa60..0600510 100644
--- a/users/kassouni/palette/default.nix
+++ b/users/kassouni/palette/default.nix
@@ -1,12 +1,4 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-let
- cfg = config.kassouni.palette;
-in
+{ lib, ... }:
{
imports = [
./bluetooth.nix
@@ -14,6 +6,8 @@ in
./rebuild.nix
./screenshot.nix
./shutdown.nix
+ ./rofi-palette.nix
+ ./fuzzel-palette.nix
];
options.kassouni.palette.commands = lib.mkOption {
@@ -37,18 +31,8 @@ in
);
default = [ ];
description = ''
- Entries shown in the rofi command palette.
+ Entries shown in the command palette. Rendered by both front ends:
+ `open-palette` (rofi, X11) and `open-palette-fuzzel` (fuzzel, Wayland).
'';
};
-
- config.home.packages = [
- (pkgs.writers.writeBashBin "open-palette" ''
- set -eu
- exes=(${lib.concatMapStringsSep " " (c: "${c.exe}") cfg.commands})
- idx=$(${pkgs.rofi}/bin/rofi -dmenu -i -format i -p palette <<EOF
-${lib.concatMapStrings (c: "${c.icon} ${c.name}\n") cfg.commands}EOF
- )
- exec "''${exes[$idx]}"
- '')
- ];
}