nix/home/file/fuzzel/default.nix

39 lines
1.4 KiB
Nix
Raw Normal View History

{
2024-11-04 04:37:29 +03:00
pkgs,
config,
...
}: let
2024-11-16 06:38:48 +03:00
dpiAware = if config.module.display.dpiAware then "yes" else "no";
2024-11-04 04:37:29 +03:00
in {
file = (pkgs.formats.ini { }).generate "FuzzelConfig" {
main = {
dpi-aware = dpiAware;
font = "Minecraftia:size=${toString config.module.style.font.size.popup}";
lines = 20;
prompt = "\"\"";
show-actions = "yes";
terminal = "foot";
width = 40;
};
border = {
radius = 0;
width = 1;
};
colors = let
defaultOpacity = "ff";
in {
background = config.module.style.color.bg.dark + config.module.style.opacity.hex;
border = config.module.style.color.border + config.module.style.opacity.hex;
counter = config.module.style.color.bg.regular + defaultOpacity;
input = config.module.style.color.fg.light + defaultOpacity;
match = config.module.style.color.fg.light + defaultOpacity;
placeholder = config.module.style.color.bg.regular + defaultOpacity;
prompt = config.module.style.color.fg.light + defaultOpacity;
selection = config.module.style.color.bg.regular + defaultOpacity;
selection-match = config.module.style.color.accent + defaultOpacity;
selection-text = config.module.style.color.fg.light + defaultOpacity;
text = config.module.style.color.fg.light + defaultOpacity;
};
};
2024-06-23 00:40:52 +03:00
}