Report the node name of the muted port

This commit is contained in:
2022-06-28 20:55:10 +02:00
parent adf36e59b1
commit b6f9754600
2 changed files with 10 additions and 2 deletions
+3 -1
View File
@@ -252,7 +252,9 @@ The indicator is displayed only on graphical terminals."
'face `(:background ,pipewire-osd-volume-off-color)))))))
(defun pw-ui--update-muted (object muted-p)
(pw-ui--update (format "%s %s" (pw-ui--object-name object) (if muted-p "muted" "unmuted"))))
(let ((object-name (pw-ui--object-name object))
(node-name (pw-ui--object-name (pw-lib-parent-node object))))
(pw-ui--update (format "%s in %s %s" object-name node-name (if muted-p "muted" "unmuted")))))
;;;###autoload
(defun pipewire-toggle-muted ()