diff --git a/config/systemd/user/pulse_jack.service b/config/systemd/user/pulse_jack.service index 353299d..89bd7bb 100644 --- a/config/systemd/user/pulse_jack.service +++ b/config/systemd/user/pulse_jack.service @@ -1,11 +1,11 @@ [Unit] Description=Pulse_and_Jack -After=jack.service -Wants=jack.service +Requires=jack.service [Service] Type=oneshot ExecStart=/home/luke/bin/pulse_jack ExecStop=/usr/bin/pactl unload-module module-jack-sink +Restart=always SuccessExitStatus=0 RemainAfterExit=true [Install] diff --git a/config/systemd/user/pulse_jack_connect.service b/config/systemd/user/pulse_jack_connect.service new file mode 100644 index 0000000..d0b5426 --- /dev/null +++ b/config/systemd/user/pulse_jack_connect.service @@ -0,0 +1,11 @@ +[Unit] +Description=Pulse_and_Jack_connection +Requires=pulse_jack.service +[Service] +Type=oneshot +ExecStart=/usr/local/bin/pulse_jack_autoconnect +ExecStop=/usr/local/bin/pulse_jack_disconnect +SuccessExitStatus=0 +RemainAfterExit=false +[Install] +WantedBy=default.target