nix/user/common/fuzzel/default.nix

33 lines
1.1 KiB
Nix
Raw Normal View History

{ pkgs, style, config, ... }: let
dpiAware = if config.setting.dpiAware then "yes" else "no";
2024-06-23 00:40:52 +03:00
in {
file = (pkgs.formats.ini {}).generate "FuzzelConfig" {
main = {
dpi-aware = dpiAware;
2024-06-25 02:13:09 +03:00
# font = "${style.font.serif.name}:size=${toString style.font.size.popup}";
font = "Minecraftia:size=${toString style.font.size.popup}";
2024-06-23 01:02:11 +03:00
lines = 20;
2024-06-23 23:45:13 +03:00
prompt = "\"\"";
2024-06-23 00:40:52 +03:00
show-actions = "yes";
terminal = config.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.regular + 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
};
}