2022-11-16 12:23:12 -08:00
waybar-wireplumber(5)
# NAME
waybar - WirePlumber module
# DESCRIPTION
The * wireplumber * module displays the current volume reported by WirePlumber.
# CONFIGURATION
* format * : ++
2023-06-06 11:44:17 +03:00
typeof: string ++
default: *{volume}%* ++
The format, how information should be displayed. This format is used when other formats aren't specified.
2022-11-16 12:23:12 -08:00
2023-04-11 08:09:01 +03:00
* format-muted * : ++
2023-06-06 11:44:17 +03:00
typeof: string ++
This format is used when the sound is muted.
2022-11-16 12:23:12 -08:00
2024-09-25 03:16:14 +10:00
* node-type * : ++
typeof: string ++
default: *Audio/Sink* ++
The WirePlumber node type to attach to. Use *Audio/Source* to manage microphones etc.
2022-11-16 12:23:12 -08:00
* tooltip * : ++
2023-06-06 11:44:17 +03:00
typeof: bool ++
default: *true* ++
Option to disable tooltip on hover.
2022-11-16 12:23:12 -08:00
* tooltip-format * : ++
2023-06-06 11:44:17 +03:00
typeof: string ++
default: *{node_name}* ++
The format of information displayed in the tooltip.
2022-11-16 12:23:12 -08:00
* rotate * : ++
2023-06-06 11:44:17 +03:00
typeof: integer ++
2024-09-08 13:33:52 +02:00
Positive value to rotate the text label (in 90 degree increments).
2022-11-16 12:23:12 -08:00
* states * : ++
2023-06-06 11:44:17 +03:00
typeof: object ++
A number of volume states which get activated on certain volume levels. See *waybar-states(5)*.
2022-11-16 12:23:12 -08:00
* max-length * : ++
2023-06-06 11:44:17 +03:00
typeof: integer ++
The maximum length in character the module should display.
2022-11-16 12:23:12 -08:00
* min-length * : ++
2023-06-06 11:44:17 +03:00
typeof: integer ++
2023-10-21 21:15:25 +05:30
The minimum length in characters the module should accept.
2022-11-16 12:23:12 -08:00
* align * : ++
2023-06-06 11:44:17 +03:00
typeof: float ++
2024-03-04 20:00:57 +01:00
The alignment of the label within the module, where 0 is left-aligned and 1 is right-aligned. If the module is rotated, it will follow the flow of the text.
* justify * : ++
typeof: string ++
The alignment of the text within the module's label, allowing options 'left', 'right', or 'center' to define the positioning.
2023-06-06 11:44:17 +03:00
* scroll-step * : ++
typeof: float ++
default: 1.0 ++
2023-10-21 21:15:25 +05:30
The speed at which to change the volume when scrolling.
2022-11-16 12:23:12 -08:00
* on-click * : ++
2023-06-06 11:44:17 +03:00
typeof: string ++
Command to execute when clicked on the module.
2022-11-16 12:23:12 -08:00
* on-click-middle * : ++
2023-06-06 11:44:17 +03:00
typeof: string ++
Command to execute when middle-clicked on the module using mousewheel.
2022-11-16 12:23:12 -08:00
* on-click-right * : ++
2023-06-06 11:44:17 +03:00
typeof: string ++
2023-10-21 21:15:25 +05:30
Command to execute when you right-click on the module.
2022-11-16 12:23:12 -08:00
* on-update * : ++
2023-06-06 11:44:17 +03:00
typeof: string ++
Command to execute when the module is updated.
* on-scroll-up * : ++
typeof: string ++
Command to execute when scrolling up on the module. This replaces the default behaviour of volume control.
* on-scroll-down * : ++
typeof: string ++
Command to execute when scrolling down on the module. This replaces the default behaviour of volume control.
* max-volume * : ++
typeof: float ++
default: 100 ++
The maximum volume that can be set, in percentage.
2022-11-16 12:23:12 -08:00
2024-05-28 20:42:12 +02:00
* menu * : ++
typeof: string ++
Action that popups the menu.
* menu-file * : ++
typeof: string ++
Location of the menu descriptor file. There need to be an element of type
GtkMenu with id *menu*
* menu-actions * : ++
typeof: array ++
The actions corresponding to the buttons of the menu.
2022-11-16 12:23:12 -08:00
# FORMAT REPLACEMENTS
* {volume} * : Volume in percentage.
* {node_name} * : The node's nickname as reported by WirePlumber (* node.nick * property)
# EXAMPLES
2024-09-25 03:16:14 +10:00
## Basic:
2022-11-16 12:23:12 -08:00
```
"wireplumber": {
2023-07-30 17:33:02 +02:00
"format": "{volume}%",
"format-muted": "",
"on-click": "helvum"
2022-11-16 12:23:12 -08:00
}
```
2024-09-25 03:16:14 +10:00
## Separate Sink and Source Widgets
```
"wireplumber#sink": {
"format": "{volume}% {icon}",
"format-muted": "",
"format-icons": ["", "", ""],
"on-click": "helvum",
"on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"scroll-step": 5
},
"wireplumber#source": {
"node-type": "Audio/Source",
"format": "{volume}% ",
"format-muted": "",
"on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
"scroll-step": 5
}
```
2022-11-16 12:23:12 -08:00
# STYLE
- * #wireplumber *
- * #wireplumber.muted *