diff --git a/modules/fuzzel/hm.nix b/modules/fuzzel/hm.nix new file mode 100644 index 00000000..6f240415 --- /dev/null +++ b/modules/fuzzel/hm.nix @@ -0,0 +1,24 @@ +{ pkgs, config, lib, ... }: + +with config.lib.stylix.colors; + +let + opacity = lib.toHexString (builtins.ceil (config.stylix.opacity.popups * 255)); + +in { + options.stylix.targets.fuzzel.enable = + config.lib.stylix.mkEnableTarget "Fuzzel" config.programs.fuzzel.enable; + + config.programs.fuzzel.settings = + lib.mkIf config.stylix.targets.fuzzel.enable { + colors = { + background = "${base00-hex}${opacity}"; + text = "${base05-hex}ff"; + match = "${base0A-hex}ff"; + selection = "${base03-hex}ff"; + selection-text = "${base05-hex}ff"; + selection-match = "${base0A-hex}ff"; + border = "${base0D-hex}ff"; + }; + }; +}