{ config, lib, pkgs, ... }: let palette-hex = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.palette; palette-shex = pkgs.lib.nix-rice.palette.toRGBShortHex pkgs.rice.palette; in { config.home.packages = [pkgs.fuzzel]; config.programs.fuzzel = with pkgs.rice; { enable = true; settings = { main = { dpi-aware = "no"; font = with fonts.sans; lib.strings.concatStrings [name ":size=" (builtins.toString (size + 2))]; icon-theme = icons.name; terminal = "kitty"; }; dmenu = { exit-immediately-if-empty = "yes"; }; border = with borders; { width = thickness; radius = rounding; }; colors = { background = lib.strings.concatStrings [palette-hex.util.bg "A0"]; text = lib.strings.concatStrings [palette-hex.util.fg "FF"]; selection = lib.strings.concatStrings [palette-hex.bright.yellow "FF"]; selection-text = lib.strings.concatStrings [palette-hex.util.bg "FF"]; selection-match = lib.strings.concatStrings [palette-hex.normal.green "FF"]; match = lib.strings.concatStrings [palette-hex.bright.green "FF"]; border = lib.strings.concatStrings [palette-hex.bright.yellow "FF"]; }; }; }; }