# SMC-PAD MIDI intercept (padeditor.intercept) as a systemd user service. # install.sh fills in @ROOT@, @PYTHON@ and @ARGS@ and copies it to # ~/.config/systemd/user/. [Unit] Description=SMC-PAD MIDI intercept (virtual port "SMC-PAD Smooth") After=sound.target # Keep retrying while the pad is switched off or not paired yet. StartLimitIntervalSec=0 [Service] Type=simple WorkingDirectory=@ROOT@ ExecStart=@PYTHON@ -m padeditor.intercept @ARGS@ Environment=PYTHONUNBUFFERED=1 # The intercept closes its ports on Ctrl+C. KillSignal=SIGINT Restart=always RestartSec=3 [Install] WantedBy=default.target