* Use pulseaudio backend * Run as separate librespot user * Use linear volume mixer
17 lines
418 B
Desktop File
17 lines
418 B
Desktop File
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description=Spotify through Librespot
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
RestartSec=2s
|
|
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
|