Turn your JBL speaker into a remote for Spotify!
Developed and tested with JBL GO nearby. Can't gurantee all JBL speakers support.
Sooner or later will be able to test it with JBL Clip 2.
This is a userspace "driver" for JBL to properly interact with Spotify Desktop on linux.
Please note this is linux-only.
At some point I'll publish pre-built executables, but for now you have to build it yourself, therefore you need cargo
installed on your system.
$ make build
$ ls target/release/spotify-jbl-remote
- Puts executable at /usr/bin/
- Adds udev rule for JBL (so you don't have to have mess with privileges and groups).
$ sudo make install
- Run Spotfiy Desktop
- Run
spotify-jbl-remote
(skip this if you created background task - see below):$ ./spotify-jbl-remote
- Now you can control spotify with Action button on your JBL speaker!
Default event handle 'driver' mapping:
- Press #1: Play
- Press #2: Pause
- Double press: Next track
There are other 'driver's available. Personally, I like play-pause
most.
get ready to sweat
See background task
- For some reason JBL GO's signals have no effect on spotify client on linux.
- Actually useful pet project
- To learn Rust
- To learn more about input events in linux
- Autosearch for JBL input event dev file
- Comments
- Basic spotify support (pause/unpause/next track)
- Option to use PlayPause interface instead of Play+Pause
- Poll mode
- Way to run it in the background
- Poll timeout
- Build guide
- Privileges setup guide
- Invalid file proper handling
- Usage guide
- Other JBL models support