ohmyzsh/plugins/spotify/README.md
Rafael Corrêa Gomes 55eaf57541 Correct structure
2015-08-18 11:18:35 -03:00

1.7 KiB
Executable file

Spotify at OS X Terminal

An AppleScript for controlling Spotify through a terminal:

The scenario for which it was originally designed is controlling Spotify,
which is playing on a Mac, via ssh, while working on a Linux machine
on the other side of the room.

Currently supported functions are: play/pause, next/previous track, jumping in time, toggling shuffle/repeat and changing volume. This pretty much covers everything the AppleScript hooks of Spotify allow.

Tested Platforms (Spotify 1.0.4.90)

  • OS X Yosemite (10.10)
  • OS X Mavericks (10.9)
  • OS X Mountain Lion (10.8)
  • OS X Lion (10.7)

Usage

  • To start Spotify playback, type spotify start or spotify play. If you do this locally and Spotify is not running, it will start. Remotely, Spotify will not start properly. Optionally, pass a Spotify URI as a second argument.
  • To pause Spotify playback, type spotify stop or spotify pause.
  • To toggle playback, type spotify play/pause.
  • To go to the next track, type spotify next.
  • To go to the previous track, type spotify previous or spotify prev.
  • To print information about the currently playing track, type spotify info
  • To jump to a particular time in the track, type spotify jump N, where N is the track position in seconds.
  • To fast forward, type spotify forward N where N is the number of seconds to jump ahead.
  • To rewind, type spotify rewind N where N is the number of seconds to jump backwards.
  • To change volume, type spotify volume N where N is a number between 0 and 100.
  • To toggle shuffle, type spotify shuffle.
  • To toggle repeat, type spotify repeat.
  • To show a list of these commands, just type spotify.