{ pkgs, ... }: let # Rofi script-mode indexer: exposes every executable user script # (shell, python, whatever) so the launcher finds "everything". rofiScripts = pkgs.writeShellScriptBin "rofi-scripts" (builtins.readFile ./rofi/rofi-scripts.sh); in { programs.rofi = { enable = true; terminal = "${pkgs.foot}/bin/foot"; cycle = true; theme = ./rofi/volt.rasi; extraConfig = { # Combi mode searches .desktop apps (drun), binaries (run), # open windows (window) and user scripts (scripts). modes = "combi"; combi-modes = "drun,run,window,scripts:${rofiScripts}/bin/rofi-scripts"; show-icons = false; drun-display-format = "{name} {comment}"; display-combi = "silicon volt >"; matching = "fuzzy"; sort = true; }; }; }