Files
dotfiles/home-modules/rofi.nix
Lennart J. Kurzweg (Nx2) edda49ee66 25.11
2025-12-03 01:59:12 +01:00

47 lines
1.6 KiB
Nix

{ pkgs, ... }@all: with all; {
home = {
packages = with pkgs; [ rofi ];
file = let # the home-manager module sucks
trdr = "${rice.lib.float-to-drune rice.transparency}";
ts = builtins.toString;
in with rice.color; {
".config/rofi/config.rasi".text = ''
configuration {
show-icons: false;
display-drun: "";
disable-history: false;
}
* {
font: "${rice.font.code.name} 12";
foreground: ${foreground};
text-color: ${foreground};
background-color: transparent;
padding: 0px;
margin: 0px;
spacing: 0px;
border-width: 0px;
}
window {
background-color: ${background}${trdr};
border: ${ts rice.border-width}px;
border-radius: ${ts rice.rounding}px;
border-color: ${ts rice.color.border};
}
listview { scrollbar: false; }
element { border-radius: ${ts rice.rounding}px; }
element.normal.normal { background-color: ${accent.darker}; text-color: ${accent.base}; }
element.selected.normal { background-color: ${accent.base}; text-color: ${accent.darker}; }
element.alternate.normal { background-color: ${secondary.darker}; text-color: ${secondary.base}; }
inputbar { children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; }
prompt { }
textbox-prompt-colon {
expand: false;
str: ">";
}
case-indicator { }
entry { placeholder: ""; }
'';
};
};
}