11.stylix/modules/fuzzel/hm.nix
awwpotato 7ffb31da69
treewide: use mkTarget (batch 2) (#1362)
Link: https://github.com/nix-community/stylix/pull/1362

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-23 19:23:39 +02:00

36 lines
940 B
Nix

{ mkTarget, lib, ... }:
mkTarget {
name = "fuzzel";
humanName = "Fuzzel";
configElements = [
(
{ fonts }:
{
programs.fuzzel.settings.main.font =
"${fonts.sansSerif.name}:size=${toString fonts.sizes.popups}";
}
)
(
{ colors, opacity }:
let
opacity' = lib.toHexString (builtins.ceil (opacity.popups * 255));
in
{
programs.fuzzel.settings.colors = with colors; {
background = "${base00-hex}${opacity'}";
text = "${base05-hex}ff";
placeholder = "${base03-hex}ff";
prompt = "${base05-hex}ff";
input = "${base05-hex}ff";
match = "${base0A-hex}ff";
selection = "${base03-hex}ff";
selection-text = "${base05-hex}ff";
selection-match = "${base0A-hex}ff";
counter = "${base06-hex}ff";
border = "${base0D-hex}ff";
};
}
)
];
}