by Intika
Version 1 (September 29, 2026)
Download (1 downloads)
Start/Stop/Play/Pause/Etc Librespot (terminal spotify player) on Termux, this require comiling Librespot and adjusting this automation's variables, this is meant for a TV and is triggered with 0/8 buttons (long pres) plus colors, and can obviously be adapted for other devices (without to say this reauire spotify premium).
You can use https://github.com/SEKY443/go-librespot-termux
Needed packages:
pkg install clang golang krb5 ldns libcompiler-rt libllvm lld llvm ndk-sysroot
Build (5min):
go build -trimpath -ldflags="-s -w" -o $PREFIX/bin/go-librespot ./cmd/daemon
cat start.pulse.sh
pulseaudio --start --load=module-sles-sink --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1
cat start.librespot.sh
termux-wake-lock
PULSE_SERVER=127.0.0.1 go-librespot
cat go.playpause.sh
curl -X POST 127.0.0.1:6969/player/playpause
Intika
https://github.com/intika
| 5 stars | 1 | |
| 4 stars | 0 | |
| 3 stars | 0 | |
| 2 stars | 0 | |
| 1 star | 0 | |
| Reports | 0 |
Rate and review within the app in the Community section.