{
config,
lib,
pkgs,
fonts,
accentColour ? "base07",
...
}: {
programs.fuzzel = {
enable = true;
settings = {
main = {
dpi-aware = true;
font = "${fonts.monospace.name}:size=${toString fonts.sizes.applications}";
icon-theme = config.gtk.iconTheme.name;
icons-enabled = true;
fields = "filename,name,generic,categories";
fuzzy = true;
terminal = with config.programs; "${
if alacritty.enable
then alacritty.package
else pkgs.alacritty
}/bin/alacritty -e";
lines = 20;
width = 80;
tabs = 4;
layer = "overlay";
};
colors = with config.scheme; {
background = "${base00}5A"; # 90% opacity
text = "${base05}FF";
match = "${red}FF";
selection = "${base01}FF";
selection-text = "${base05}FF";
selection-match = "${red}FF";
border = "${config.scheme.${accentColour}}FF";
border = {
width = 1;
radius = 10;
}