[Unit] Description=Ekklesia Classroom audio output policy Documentation=file:///usr/local/bin/classroom-audio # pactl talks to PipeWire's PulseAudio server, not to pipewire itself. # Ordering only after pipewire and wireplumber is what let this service # win the race against it at boot, fail its one startup apply, and then # sit subscribed and idle while the room stayed on WirePlumber's choice. # The daemon waits for the server as well: the socket can exist before # anything will answer on it, so ordering alone is not enough. After=pipewire.service pipewire-pulse.socket pipewire-pulse.service wireplumber.service Wants=pipewire.service pipewire-pulse.socket wireplumber.service PartOf=graphical-session.target [Service] ExecStart=/usr/local/bin/classroom-audio # The room losing its sound policy is a Sunday-morning problem, so this is # never allowed to stay dead — the same rule the panel gets. Restart=always RestartSec=5 Slice=session.slice [Install] WantedBy=plasma-workspace.target