nix/programs/rofi.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2024-06-13 15:38:40 +02:00
{ config, ... }:
{
enable = true;
theme = let
mkLiteral = config.lib.formats.rasi.mkLiteral;
Black = mkLiteral "Black";
White = mkLiteral "White";
north = mkLiteral "north";
horizontal = mkLiteral "horizontal";
in {
"*" = {
background-color = Black;
border-color = White;
text-color = White;
font = "JetBrains Mono NL 12";
};
window = {
anchor = north;
location = north;
width = mkLiteral "100%";
padding = mkLiteral "4px";
children = map mkLiteral [ "horibox" ];
};
horibox = {
orientation = horizontal;
children = map mkLiteral [ "prompt" "entry" "listview" ];
};
listview = {
layout = horizontal;
spacing = mkLiteral "5px";
lines = 100;
};
entry = {
expand = false;
width = mkLiteral "10em";
};
element = {
padding = mkLiteral "0px 2px";
};
"element selected" = {
background-color = mkLiteral "#333333";
};
prompt = {
text-color = mkLiteral "#00000000";
};
"element-text, element-icon" = {
background-color = mkLiteral "inherit";
text-color = mkLiteral "inherit";
};
};
}