Name Chrome streams after their browser tabs

A browser extension reports audible tabs to moonmix-tabs-host, which matches
them to PipeWire streams by time and publishes the names for the mixer; streams
of one tab share a row. Ambiguous streams keep the browser's name. Without the
extension, a browser's only running stream shows its MPRIS title.

The smoke test no longer claims real audio hardware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Opus 5.5 committed 2026-11-29 19:26:29 -08:00
1 parent b61d504234
commit e16cc1b2ad
31 files changed
+1830 -15

No files matched your search

+8
View File
@@ -35,6 +35,14 @@ set -- podman run --rm --pull=never \
--mount "type=bind,src=$wayland_socket,dst=/run/moonmix/wayland-0,ro" \
--mount "type=bind,src=$pipewire_socket,dst=/run/moonmix/pipewire-0,ro"
# Browser tab names published by the host's moonmix-tabs-host. Created here so
# that names also appear when the browser starts after the mixer.
tabs_dir=$XDG_RUNTIME_DIR/moonmix
mkdir -p -m 700 "$tabs_dir"
set -- "$@" \
--mount "type=bind,src=$tabs_dir,dst=/run/moonmix/tabs,ro" \
--env MOONMIX_TABS_DIR=/run/moonmix/tabs
# The portal supplies desktop appearance settings. Do not expose the rest of
# XDG_RUNTIME_DIR (which can contain credentials and unrelated service sockets).
if [ -S "$XDG_RUNTIME_DIR/bus" ]; then