29 lines
835 B
Nix
29 lines
835 B
Nix
{ 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} <span alpha='60%'>{comment}</span>";
|
|
display-combi = "silicon volt >";
|
|
matching = "fuzzy";
|
|
sort = true;
|
|
};
|
|
};
|
|
}
|