This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/programs/desktop/fuzzel/default.nix

46 lines
1.1 KiB
Nix

{
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;
filter-desktop = true;
terminal = with config.programs; "${
if foot.enable
then foot.package
else pkgs.foot
}/bin/foot -e";
lines = 20;
width = 80;
tabs = 4;
layer = "overlay";
};
colors = with config.scheme; {
background = "${base00}50"; # 80% 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;
};
};
};
}