updated quickshell
This commit is contained in:
28
home/rofi.nix
Normal file
28
home/rofi.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user