yambar-modules-pipewire(5)

🎧 NAME πŸ’…

okay so bestie, welcome to yambar-modules-pipewire(5) β€” this page is all about the pipewire module, and its whole main-character job is Monitors pipewire for volume, mute/unmute, device change ✨


🏷️ TAGS ✨

ngl, here's the full tag lineup β€” every single one is iconic, no cap:

  • type β€” string β€” Either "source" (capture) or "sink" (speaker)
  • name β€” string β€” Current device name
  • description β€” string β€” Current device description
  • form_factor β€” string β€” Current device form factor (headset, speaker, mic, etc)
  • bus β€” string β€” Current device bus (bluetooth, alsa, etc)
  • icon β€” string β€” Current device icon name
  • muted β€” bool β€” True if muted, otherwise false
  • linear_volume β€” range β€” Linear volume in percentage (with 0 as min and 100 as max)
  • cubic_volume β€” range β€” Cubic volume (used by pulseaudio) in percentage (with 0 as min and 100 as max)

βš™οΈ CONFIGURATION 🫢

  • content β€” particle β€” Req: yes β€” Unlike other modules, content is a template particle that will be expanded twice (i.e. into a list of two elements). The first element is the 'sink', and the second element the 'source'.

🌈 EXAMPLES πŸ’–

this example is giving full bar energy, fr fr:

           bar:
             left:
               - pipewire:
                   anchors:
                     volume: &volume
                       conditions:
                         muted: {string: {text: "{linear_volume}%", foreground: ff0000ff}}
                         ~muted: {string: {text: "{linear_volume}%"}}
                   content:
                     list:
                       items:
                         - map:
                             conditions:
                               type == "sink":
                                 map:
                                   conditions:
                                     icon == "audio-headset-bluetooth":
                                       string: {text: "🎧  "}
                                   default:
                                     - ramp:
                                         tag: linear_volume
                                         items:
                                           - string: {text: "πŸ”ˆ  "}
                                           - string: {text: "πŸ”‰  "}
                                           - string: {text: "πŸ”Š  "}
                               type == "source":
                                 - string: {text: "πŸŽ™  "}
                         - map:
                             <<: *volume

πŸ‘€ SEE ALSO πŸ¦‹

go check these besties too:


πŸ’Œ source/version: yambar-modules-pipewire(5) Β· date: 2024-04-22 β€” mwah, stay hydrated and slay your bar πŸ’…πŸ’–

πŸ“¦ where this page comes from