1yambar-modules-pipewire(5) File Formats Manual yambar-modules-pipewire(5)
2
3
4
6 pipewire - Monitors pipewire for volume, mute/unmute, device change
7
9 ┌──────────────┬────────┬──────────────────────────────────────────────┐
10 │Name │ Type │ Description │
11 ├──────────────┼────────┼──────────────────────────────────────────────┤
12 │type │ string │ Either "source" (capture) or "sink" │
13 │ │ │ (speaker) │
14 ├──────────────┼────────┼──────────────────────────────────────────────┤
15 │name │ string │ Current device name │
16 ├──────────────┼────────┼──────────────────────────────────────────────┤
17 │description │ string │ Current device description │
18 ├──────────────┼────────┼──────────────────────────────────────────────┤
19 │form_factor │ string │ Current device form factor (headset, │
20 │ │ │ speaker, mic, etc) │
21 ├──────────────┼────────┼──────────────────────────────────────────────┤
22 │bus │ string │ Current device bus (bluetooth, alsa, etc) │
23 ├──────────────┼────────┼──────────────────────────────────────────────┤
24 │icon │ string │ Current device icon name │
25 ├──────────────┼────────┼──────────────────────────────────────────────┤
26 │muted │ bool │ True if muted, otherwise false │
27 ├──────────────┼────────┼──────────────────────────────────────────────┤
28 │linear_volume │ range │ Linear volume in percentage (with 0 as min │
29 │ │ │ and 100 as max) │
30 ├──────────────┼────────┼──────────────────────────────────────────────┤
31 │cubic_volume │ range │ Cubic volume (used by pulseaudio) in per‐ │
32 │ │ │ centage (with 0 as min and 100 as max) │
33 └──────────────┴────────┴──────────────────────────────────────────────┘
34
36 No additional attributes supported, only the generic ones (see GENERIC
37 CONFIGURATION in yambar-modules(5))
38
40 bar:
41 left:
42 - pipewire:
43 anchors:
44 volume: &volume
45 conditions:
46 muted: {string: {text: "{linear_volume}%", foreground: ff0000ff}}
47 ~muted: {string: {text: "{linear_volume}%"}}
48 content:
49 list:
50 items:
51 - map:
52 conditions:
53 type == "sink":
54 map:
55 conditions:
56 icon == "audio-headset-bluetooth":
57 string: {text: "🎧 "}
58 default:
59 - ramp:
60 tag: linear_volume
61 items:
62 - string: {text: "🔈 "}
63 - string: {text: "🔉 "}
64 - string: {text: "🔊 "}
65 type == "source":
66 - string: {text: "🎙 "}
67 - map:
68 <<: *volume
69
71 yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decora‐
72 tions(5)
73
74 2023-07-22 yambar-modules-pipewire(5)