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/sway/fuzzel/default.nix

45 lines
1 KiB
Nix
Raw Normal View History

{
config,
lib,
pkgs,
fonts,
accentColour ? "base07",
...
}: {
programs.fuzzel = {
enable = true;
settings = {
main = {
dpi-aware = false;
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 = 40;
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;
};
};
};
}