yambar-modules-pipewire - Man Page

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

No additional attributes supported, only the generic ones (see GENERIC CONFIGURATION in yambar-modules(5))

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)

Info

2024-01-27