From 28699d2b27daca9f3bda0f27688846b4db44ba7e Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 27 May 2024 14:40:23 +0100 Subject: [PATCH] Add extra fuzzel config --- programs/sway/fuzzel/default.nix | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/programs/sway/fuzzel/default.nix b/programs/sway/fuzzel/default.nix index 7494a4c..cdc08dc 100644 --- a/programs/sway/fuzzel/default.nix +++ b/programs/sway/fuzzel/default.nix @@ -2,16 +2,43 @@ config, lib, pkgs, + fonts, + accentColour ? "base07", ... }: { programs.fuzzel = { enable = true; settings = { main = { - terminal = "${pkgs.foot}/bin/foot"; + 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.background = "ffffffff"; + 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; + }; }; }; }