switch to wireplumber waybar module and split into sink and source

This commit is contained in:
Clayton Hickey 2025-10-15 16:41:37 -04:00
parent 2149150c7f
commit c3431f8283

View file

@ -208,7 +208,8 @@ let cfg = config.cos.hyprland; in
]; ];
"modules-right" = [ "modules-right" = [
"mpd" "mpd"
"pulseaudio" "wireplumber#sink"
"wireplumber#source"
"network" "network"
"cpu" "cpu"
"memory" "memory"
@ -222,28 +223,18 @@ let cfg = config.cos.hyprland; in
format-icons = [""]; format-icons = [""];
tooltip = false; tooltip = false;
}; };
pulseaudio = { "wireplumber#sink" = {
"format" = "{volume}% {icon} {format_source}"; "node-type" = "Audio/Sink";
"format-bluetooth" = "{volume}% {icon} {format_source}"; "format" = "{volume}% 🔊";
"format-bluetooth-muted" = " {icon} {format_source}"; "format-muted" = "🔇";
"format-muted" = " {format_source}"; "on-click" = "pwvucontrol";
"format-source" = "{volume}% ";
"format-source-muted" = "";
"format-icons" = {
"headphone" = "";
"hands-free" = "";
"headset" = "";
"phone" = "";
"portable" = "";
"car" = "";
"default" = [
""
""
""
];
};
"on-click" = "pavucontrol";
}; };
"wireplumber#source" = {
"node-type" = "Audio/Source";
"format" = "{volume}% 🎤";
"format-muted" = "X";
"on-click" = "pwvucontrol";
};
cpu = { cpu = {
format = "{usage}% "; format = "{usage}% ";
}; };