Skip to content

robled/keysocket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Global keyboard bindings to control your Chrome-based music player.

UPDATE: Now works for all versions of Chrome

Supported sites:

  • Google Music
  • Grooveshark
  • thesixtyone
  • Amazon music player
  • Pandora
  • vk.com (Vkontakte)
  • Youtube.com
  • Slacker
  • Яндекс.Музыка (Yandex.Music)
  • Tracksflow.com
  • Jango.com
  • Spotify
  • Deezer

Usage

  1. Install extension from the chrome web store.
  2. Install the KeySocket server.
    • Mac
      Install Key Socket.app.

    • Windows
      Download and run KeySocket.windows.msi.

    • Linux
      Download and run KeySocket.linux.py. Note that gnome-settings-daemon must be running for KeySocket to work. It is installed by default on Gnome- and Unity-based systems, but may need to be installed and started separately on systems using other deskstop environments (KDE, XFCE, etc.). The script also depends on Autobahn, PyGTK and dbus-python.

    • Linux Alternate Download and run keyserver.bz2.

      Note that this has no gui and requires that you know something of how X maps media keys.

Building

Mac

  1. Prerequisites:
  2. Clone this repository:
    git clone [email protected]:borismus/keysocket.git
  3. Go into the server-mac directory and run setup.py:
    python setup.py py2app
    The app is built in ./dist/Key Socket.app.

Windows

  1. Prerequisites:
  2. Clone this repository:
    git clone [email protected]:borismus/keysocket.git
  3. Go into the server-windows directory and run setup.py:
    python setup.py build
    The executable is built in ./dist/KeySocket.exe.

Linux GTK Client

  1. Prerequisites:

  2. Installation of Prerequisites on Ubuntu/Debian

    • sudo apt-get install python-dbus python-gtk2 gnome-settings-daemon
    • sudo easy_install autobahn
  3. Clone this repository:
    git clone https://github.com/borismus/keysocket.git

  4. No building required. Just run ./server-linux/keysocket.py.

Linux Go Client (less user friendly)

  1. Prerequisites:

  2. Once your go environment is setup:

    • go get -u -v code.google.com/p/keysocket-server
    • cd $GOPATH/src/code.google.com/p/keysocket-server
    • go build -o keyserver
  3. ./keyserver -help for options.

  4. If you've setup X Media Keys the Go Server listens to XF86AudioNext,Prev and Play by default. These can be changed with command line flags.

Contribute please!

  • Looking for adapters for other music players.

Releases

No releases published

Packages

No packages published

Languages

  • Python 61.0%
  • JavaScript 39.0%