Spty
Spotify Player Terminal Utility. CLI that lets you control your Spotify player from the terminal. Only works on MacOSX as it uses AppleScript API to control the player.
Installation
$ gem install spty
Usage
Spotify player has to be running for these command to work.
Show gem version
$ spty version
Show current player state
$ spty state
Play the current track
$ spty play
Pause the current track
$ spty pause
Toggle player play / pause
$ spty toggle
Get track title and artist
$ spty info
Skip track and play the next track
$ spty skip
Replay previous track
$ spty replay
Show current volume level
$ spty volume
Increase the volume level by 10
$ spty volume up
Decrease the volume level by 10
$ spty volume down
Set the volume level with given number
$ spty volume [number]
Set the volume level to 0
$ spty mute
Set the volume level to 60
$ spty unmute
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/jibone/spty. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the Spty project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.