[Unit]
Description=Enforce fixed ALSA-seq MIDI wiring (control surface -> Midi Through, return leg cut)
# Run alongside the sound/PipeWire session.
After=pipewire.service
Wants=pipewire.service

[Service]
Type=simple
ExecStart=%h/.local/bin/midi-autoconnect.sh
Restart=always
RestartSec=2
# Tiny footprint; it's mostly sleeping.
Nice=10

[Install]
WantedBy=default.target
