Add support for Fuzzel

This commit is contained in:
Daniel Thwaites 2023-07-13 19:24:44 +01:00
parent 2524c8ae02
commit 952ba1c756
No known key found for this signature in database
GPG key ID: D8AFC4BF05670F9D

24
modules/fuzzel/hm.nix Normal file
View file

@ -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";
};
};
}