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

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)

Referenced By

yambar-modules(5).

2024-07-20