Skip to content
adammw edited this page Jan 30, 2011 · 6 revisions

Welcome to the sharkzapper wiki!

External interface

The external interface is very basic, and not optimised for production use, however it allows users to map global shortcut keys to certain functions within Grooveshark / sharkZapper. It is supported on sharkZapper version 1.3.7 or later.

Basically, to execute any command run

google-chrome --app="chrome-extension://dcaneijaapiiojfmgmdjeapgpapbjohb/html/sharkzapper_externalcommand.html#command"

**Note: ** For versions before 1.3.9, sharkzapper_externalcommand.html was not in the html folder

where command can be:

  • togglePlayPause
  • prevSong
  • nextSong

This command will essentially tell Google Chrome to open a new window of that url, and that page when loaded will check the command after the hash and execute the command, then close the window.

To use the external interface as for keyboard shortcuts for Ubuntu 10.10 either use sharkzapper-Helper or manually:

  1. Go to System > Keyboard Shortcuts
  2. Click "add"
  3. Copy the command into the command textbox, replacing command with each command, and insert a descriptive name
  4. Assign a keyboard shortcut by clicking "Disabled" in the shortcut column, then pressing the key you want to use (for example your keyboard's Play/Pause Button)

Clone this wiki locally