@@ -54,7 +54,9 @@ void waybar::modules::Pulseaudio::contextStateCb(pa_context *c, void *data) {
54
54
c,
55
55
static_cast <enum pa_subscription_mask>(static_cast <int >(PA_SUBSCRIPTION_MASK_SERVER) |
56
56
static_cast <int >(PA_SUBSCRIPTION_MASK_SINK) |
57
- static_cast <int >(PA_SUBSCRIPTION_MASK_SOURCE)),
57
+ static_cast <int >(PA_SUBSCRIPTION_MASK_SINK_INPUT) |
58
+ static_cast <int >(PA_SUBSCRIPTION_MASK_SOURCE) |
59
+ static_cast <int >(PA_SUBSCRIPTION_MASK_SOURCE_OUTPUT)),
58
60
nullptr ,
59
61
nullptr );
60
62
break ;
@@ -121,8 +123,12 @@ void waybar::modules::Pulseaudio::subscribeCb(pa_context * conte
121
123
pa_context_get_server_info (context, serverInfoCb, data);
122
124
} else if (facility == PA_SUBSCRIPTION_EVENT_SINK) {
123
125
pa_context_get_sink_info_by_index (context, idx, sinkInfoCb, data);
126
+ } else if (facility == PA_SUBSCRIPTION_EVENT_SINK_INPUT) {
127
+ pa_context_get_sink_info_list (context, sinkInfoCb, data);
124
128
} else if (facility == PA_SUBSCRIPTION_EVENT_SOURCE) {
125
129
pa_context_get_source_info_by_index (context, idx, sourceInfoCb, data);
130
+ } else if (facility == PA_SUBSCRIPTION_EVENT_SOURCE_OUTPUT) {
131
+ pa_context_get_source_info_list (context, sourceInfoCb, data);
126
132
}
127
133
}
128
134
@@ -279,7 +285,7 @@ auto waybar::modules::Pulseaudio::update() -> void {
279
285
fmt::arg (" source_desc" , source_desc_),
280
286
fmt::arg (" icon" , getIcon (volume_, getPulseIcon ()))));
281
287
getState (volume_);
282
-
288
+
283
289
if (tooltipEnabled ()) {
284
290
if (tooltip_format.empty () && config_[" tooltip-format" ].isString ()) {
285
291
tooltip_format = config_[" tooltip-format" ].asString ();
0 commit comments