From c3431f82831bae03fbd9dcf13b779cdff1e9d9f9 Mon Sep 17 00:00:00 2001 From: clay53 Date: Wed, 15 Oct 2025 16:41:37 -0400 Subject: [PATCH] switch to wireplumber waybar module and split into sink and source --- hyprland.nix | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/hyprland.nix b/hyprland.nix index 8436879..a61bdaa 100644 --- a/hyprland.nix +++ b/hyprland.nix @@ -208,7 +208,8 @@ let cfg = config.cos.hyprland; in ]; "modules-right" = [ "mpd" - "pulseaudio" + "wireplumber#sink" + "wireplumber#source" "network" "cpu" "memory" @@ -222,28 +223,18 @@ let cfg = config.cos.hyprland; in format-icons = [""]; tooltip = false; }; - pulseaudio = { - "format" = "{volume}% {icon} {format_source}"; - "format-bluetooth" = "{volume}% {icon} {format_source}"; - "format-bluetooth-muted" = " {icon} {format_source}"; - "format-muted" = " {format_source}"; - "format-source" = "{volume}% "; - "format-source-muted" = ""; - "format-icons" = { - "headphone" = ""; - "hands-free" = ""; - "headset" = ""; - "phone" = ""; - "portable" = ""; - "car" = ""; - "default" = [ - "" - "" - "" - ]; - }; - "on-click" = "pavucontrol"; + "wireplumber#sink" = { + "node-type" = "Audio/Sink"; + "format" = "{volume}% 🔊"; + "format-muted" = "🔇"; + "on-click" = "pwvucontrol"; }; + "wireplumber#source" = { + "node-type" = "Audio/Source"; + "format" = "{volume}% 🎤"; + "format-muted" = "X"; + "on-click" = "pwvucontrol"; + }; cpu = { format = "{usage}% "; };