Reference

yambar-modules-pipewire(5)

Monitors pipewire for volume, mute/unmute, device change

NAME

pipewire - Monitors pipewire for volume, mute/unmute, device change

TAGS

NameTypeDescription
typestringEither "source" (capture) or "sink" (speaker)
namestringCurrent device name
descriptionstringCurrent device description
form_factorstringCurrent device form factor (headset, speaker, mic, etc)
busstringCurrent device bus (bluetooth, alsa, etc)
iconstringCurrent device icon name
mutedboolTrue if muted, otherwise false
linear_volumerangeLinear volume in percentage (with 0 as min and 100 as max)
cubic_volumerangeCubic volume (used by pulseaudio) in percentage (with 0 as min and 100 as max)

CONFIGURATION

NameTypeReqDescription
contentparticleyesUnlike 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

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

yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)

History