{ config, lib, pkgs, ... }: let cfg = config.kassouni.palette; in { # X11 front end for the palette. `-format i` makes rofi print the row index, # so the label shown and the executable run stay paired by position rather # than by parsing the label back out. 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 <