Skip to content

App that can adjust Spotify volume using API and Windows Hotkeys

License

Notifications You must be signed in to change notification settings

Akasiek/knob_rocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knob Rocker

Rust Spotify

Windows Desktop application for controlling the volume of Spotify using Keyboard Knob.

It uses the Spotify API to change internal Spotify volume, not the system volume. This way, you can control the volume of Spotify independently of the system volume. Also works for other devices that are connected to the same account.

How to use

Control the volume of Spotify using F21 and F22 keys. Those were chosen because they're rarely used in other applications and can be easily bound to keyboard's knob.

Configuration

First, you need to create a Spotify application in the Spotify Developer Dashboard. You can do that by following this link.

Choose 'Web Playback SDK' and 'Web API'. If you want to use Android or iOS devices, you can choose API keys for those platforms as well, but they're not necessary.

After creating the application, you'll get a Client ID and a Client secret. You will be asked to provide them when you run the application for the first time. Also, you'll need to add http://localhost/ as a redirect URI in the Spotify Developer Dashboard.

After entering the Client ID and Secret and API authorization, it will create two files in ~\.config\knob_rocker directory. Those files store the Client ID and Secret, as well as the cache API token.

How to build

  1. Clone the repository
  2. Change the current directory to the repository's root
  3. Run cargo build --release
  4. The executable will be in target/release/knob_rocker.exe

Supported platforms

Only Windows is supported at the moment. Linux could be implemented if not for the Wayland way of handling global hotkeys. MacOS isn't really a priority for me, but I'm open to testing and merging PRs.

About

App that can adjust Spotify volume using API and Windows Hotkeys

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages