[systemd] Add snap send services
This commit is contained in:
14
systemd/.config/systemd/user/bluesend.service
Normal file
14
systemd/.config/systemd/user/bluesend.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Send bluetooth input to Snapcast
|
||||||
|
Wants=sound.target
|
||||||
|
After=sound.target
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=gst-launch-1.0 -v pulsesrc ! audioconvert ! audioresample ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=snapcast.service port=4101
|
||||||
|
Restart=always
|
||||||
|
RestartSec=12
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
14
systemd/.config/systemd/user/snapsend.service
Normal file
14
systemd/.config/systemd/user/snapsend.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Send primary audio ouptut to Snapcast
|
||||||
|
Wants=sound.target
|
||||||
|
After=sound.target
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=gst-launch-1.0 -v pulsesrc ! audioconvert ! audioresample ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=snapcast.service port=4100
|
||||||
|
Restart=always
|
||||||
|
RestartSec=12
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
Reference in New Issue
Block a user