nix/user/common/fuzzel/default.nix

32 lines
985 B
Nix
Raw Normal View History

2024-06-23 00:40:52 +03:00
{ pkgs, style, setting, ... }: let
dpiAware = if setting.dpiAware then "yes" else "no";
in {
file = (pkgs.formats.ini {}).generate "FuzzelConfig" {
main = {
dpi-aware = dpiAware;
2024-06-23 01:02:11 +03:00
font = "${style.font.serif.name}:size=${toString style.font.size.popup}";
lines = 20;
prompt = "\"$ \"";
2024-06-23 00:40:52 +03:00
show-actions = "yes";
2024-06-23 04:55:57 +03:00
terminal = setting.terminal.bin;
2024-06-23 01:02:11 +03:00
width = 40;
# list-executables-in-path = "no";
2024-06-23 00:40:52 +03:00
};
border = {
radius = 0;
width = 1;
};
2024-06-23 03:04:15 +03:00
colors = let
defaultOpacity = "ff";
in {
background = style.color.bg.dark + style.opacity.hex;
border = style.color.border + style.opacity.hex;
match = style.color.fg.light + defaultOpacity;
selection = style.color.bg.dark + defaultOpacity;
selection-match = style.color.accent + defaultOpacity;
selection-text = style.color.fg.light + defaultOpacity;
text = style.color.fg.light + defaultOpacity;
2024-06-23 01:02:11 +03:00
};
2024-06-23 00:40:52 +03:00
};
}