nixconf/modules/waybar/wireplumber.nix
2025-05-04 15:25:41 +02:00

39 lines
838 B
Nix

{
lib,
config,
pkgs,
...
}:
let
name = "wireplumber";
in
{
options.modules.waybar = {
modules = import ./addname.nix lib name;
enabled.${name} = {
enable = lib.mkEnableOption "enable ${name} waybar module";
};
};
config = lib.mkIf config.modules.waybar.enabled.${name}.enable {
programs.waybar = {
settings.mainBar."${name}" = {
format = "{icon} {volume}%";
format-muted = "󰝟";
format-icons = [
""
""
""
];
on-click = lib.meta.getExe' pkgs.helvum "helvum";
};
style = ''
#wireplumber {
color: #${config.lib.stylix.colors.base04};
margin: 5px 0px;
padding: 0 8px;
background-color: #${config.lib.stylix.colors.base10};
}
'';
};
};
}