Giter Site home page Giter Site logo

knob_rocker's Introduction

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.

knob_rocker's People

Contributors

akasiek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.