1waybar-pulseaudio(5)          File Formats Manual         waybar-pulseaudio(5)
2
3
4

NAME

6       waybar - pulseaudio module
7

DESCRIPTION

9       The pulseaudio module displays the current volume reported by PulseAu‐
10       dio.
11
12       Additionally you can control the volume by scrolling up or down while
13       the cursor is over the module.
14

CONFIGURATION

16       format:
17            typeof: string
18            default: {volume}%
19            The format, how information should be displayed. This format is
20       used when other formats aren't specified.
21
22       format-bluetooth:
23            typeof: string
24            This format is used when using bluetooth speakers.
25
26       format-muted:
27            typeof: string
28            This format is used when the sound is muted.
29
30       format-source:
31            typeof: string
32            default: {volume}%
33            This format used for the source.
34
35       format-source-muted:
36            typeof: string
37            This format is used when the source is muted.
38
39       format-icons:
40            typeof: array
41            Based on the current port-name and volume, the corresponding icon
42       gets selected. The order is low to high. See Icons.
43
44       rotate:
45            typeof: integer
46            Positive value to rotate the text label.
47
48       states:
49            typeof: array
50            A number of volume states which get activated on certain volume
51       levels. See waybar-states(5)
52
53       max-length:
54            typeof: integer
55            The maximum length in character the module should display.
56
57       min-length:
58           typeof: integer
59           The minimum length in characters the module should take up.
60
61       align:
62           typeof: float
63           The alignment of the text, where 0 is left-aligned and 1 is right-
64       aligned. If the module is rotated, it will follow the flow of the text.
65
66       scroll-step:
67            typeof: float
68            default: 1.0
69            The speed in which to change the volume when scrolling.
70
71       on-click:
72            typeof: string
73            Command to execute when clicked on the module.
74
75       on-click-middle:
76            typeof: string
77            Command to execute when middle-clicked on the module using mouse‐
78       wheel.
79
80       on-click-right:
81            typeof: string
82            Command to execute when you right clicked on the module.
83
84       on-update:
85            typeof: string
86            Command to execute when the module is updated.
87
88       on-scroll-up:
89            typeof: string
90            Command to execute when scrolling up on the module. This replaces
91       the default behaviour of volume control.
92
93       on-scroll-down:
94            typeof: string
95            Command to execute when scrolling down on the module. This re‐
96       places the default behaviour of volume control.
97
98       smooth-scrolling-threshold:
99            typeof: double
100            Threshold to be used when scrolling.
101
102       tooltip:
103            typeof: bool
104            default: true
105            Option to disable tooltip on hover.
106

FORMAT REPLACEMENTS

108       {desc}: Pulseaudio port's description, for bluetooth it'll be the de‐
109       vice name.
110
111       {volume}: Volume in percentage.
112
113       {icon}: Icon, as defined in format-icons.
114
115       {format_source}: Source format, format-source, format-source-muted.
116

ICONS:

118       The following strings for format-icons are supported.
119
120       •   the device name
121
122
123       If they are found in the current PulseAudio port name, the correspond‐
124       ing icons will be selected.
125
126default (Shown, when no other port is found)
127headphone
128speaker
129hdmi
130headset
131hands-free
132portable
133car
134hifi
135phone
136
137

EXAMPLES

139           "pulseaudio": {
140                "format": "{volume}% {icon}",
141                "format-bluetooth": "{volume}% {icon}",
142                "format-muted": "",
143                "format-icons": {
144                     "alsa_output.pci-0000_00_1f.3.analog-stereo": "",
145                     "headphones": "",
146                     "handsfree": "",
147                     "headset": "",
148                     "phone": "",
149                     "portable": "",
150                     "car": "",
151                     "default": ["", ""]
152                },
153                "scroll-step": 1,
154                "on-click": "pavucontrol"
155           }
156

STYLE

158#pulseaudio
159#pulseaudio.bluetooth
160#pulseaudio.muted
161
162
163
164                                  2022-05-23              waybar-pulseaudio(5)
Impressum