music/librespot: Various tweaks
* Use pulseaudio backend * Run as separate librespot user * Use linear volume mixer
This commit is contained in:
parent
301529271d
commit
43075d27fe
4 changed files with 22 additions and 15 deletions
|
@ -3,16 +3,15 @@
|
|||
[Unit]
|
||||
Description=Spotify through Librespot
|
||||
After=network.target
|
||||
Requires=jackd.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
ExecStart=/opt/librespot/target/release/librespot --name Trollibox --backend jackaudio
|
||||
User={{ music_audio_user }}
|
||||
Group={{ music_audio_user }}
|
||||
AmbientCapabilities=CAP_IPC_LOCK,CAP_SYS_NICE
|
||||
ExecStart=/opt/librespot/target/release/librespot --name Trollibox --backend pulseaudio --volume-ctrl linear
|
||||
Environment="PULSE_SERVER=/tmp/pipewire-pulse-socket"
|
||||
Environment="XDG_RUNTIME_DIR=/run/user/0"
|
||||
User={{ music_librespot_user }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue