All Projects → hnarayanan → Shpotify

hnarayanan / Shpotify

A command-line interface to Spotify.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Shpotify

Httpcat
httpcat is a simple utility for constructing raw HTTP requests on the command line.
Stars: ✭ 109 (-93.88%)
Mutual labels:  utility, command-line
Listen Now
Listen-now, 提供了多音乐平台的音乐搜索、播放、歌单播放、同步平台歌单到本地数据库,并计划开发智能音乐推荐系统。listen-now主要由学生层级的同学一起开发。
Stars: ✭ 139 (-92.2%)
Mutual labels:  music, spotify
Spotspot
A Spotify mini-player for macOS
Stars: ✭ 110 (-93.83%)
Mutual labels:  music, spotify
Vidify
Play music videos automatically for the songs playing on any device
Stars: ✭ 95 (-94.67%)
Mutual labels:  music, spotify
Asciigraph
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
Stars: ✭ 1,805 (+1.29%)
Mutual labels:  utility, command-line
Carol Xamarin
A minimal and beautiful lyrics app for macOS built with Xamarin and C#
Stars: ✭ 97 (-94.56%)
Mutual labels:  music, spotify
Sonos Web
Web interface for Sonos audio systems
Stars: ✭ 114 (-93.6%)
Mutual labels:  music, spotify
Spotify Onthego
Download Spotify playlists by searching for audio files on YouTube
Stars: ✭ 66 (-96.3%)
Mutual labels:  music, spotify
Deezer Downloader
Download music from Deezer with a nice front end
Stars: ✭ 127 (-92.87%)
Mutual labels:  music, spotify
Sysdash
A simple and clean system monitoring skin for Rainmeter.
Stars: ✭ 128 (-92.82%)
Mutual labels:  music, spotify
Botify
Discord bot that plays Spotify tracks and YouTube videos or any URL including Soundcloud links and Twitch streams
Stars: ✭ 86 (-95.17%)
Mutual labels:  music, spotify
Cherchord
🎸 Find chords for any string instrument quicky & easily 🎸
Stars: ✭ 137 (-92.31%)
Mutual labels:  command-line, music
Karmabot
🤖 A Multipurpose Discord Bot with a Music System & Utility commands used by 160K+ users!
Stars: ✭ 73 (-95.9%)
Mutual labels:  utility, music
Getsong
Download any song mp3 with no dependencies except ffmpeg
Stars: ✭ 102 (-94.28%)
Mutual labels:  music, spotify
Spotifycurrentlyplaying.js
Display your currently playing Spotify song(s) using Last.fm scrobbling.
Stars: ✭ 71 (-96.02%)
Mutual labels:  music, spotify
Zenmusic
Slack / Sonos / Spotify / Node.js - Control Sonos through #Slack
Stars: ✭ 113 (-93.66%)
Mutual labels:  music, spotify
A Pop
🎶 HD Music Streaming and Sharing Web App
Stars: ✭ 55 (-96.91%)
Mutual labels:  music, spotify
Headfon.es
a mini Spotify clone 🎧
Stars: ✭ 62 (-96.52%)
Mutual labels:  music, spotify
Ytmdl
A simple app to get songs from YouTube in mp3 format with artist name, album name etc from sources like iTunes, Spotify, LastFM, Deezer, Gaana etc.
Stars: ✭ 2,070 (+16.16%)
Mutual labels:  music, spotify
Spotifile
FUSE file system for Spotify
Stars: ✭ 133 (-92.54%)
Mutual labels:  music, spotify

shpotify

shpotify is a simple Bash/Apple script to control Spotify from the command line on a Mac.

If you find this interesting, you should follow me on Twitter to learn about the other things I do.

Installation

Download and install the Spotify desktop application if you haven’t already.

With Homebrew

The easiest way to install shpotify is by using the Homebrew package manager:

brew install shpotify

Manual installation

If you don’t use Homebrew, you can install the script manually by following a few simple steps:

  1. Fetch a copy of this repository, either with git or download the zip archive.

  2. Navigate to the folder where you fetched the repository (unzip if needed) and make sure the file called spotify is executable:

    cd shpotify
    chmod +x spotify
    
  3. Copy the file spotify to a convenient location in your PATH, or set your PATH to include the folder where the file is located.

Connecting to Spotify’s API

shpotify needs to connect to Spotify’s API in order to find music by name. It is very likely you want this feature!

To get this to work, you first need to sign up (or into) Spotify’s developer site and create an Application. Once you’ve done so, you can find its Client ID and Client Secret values and enter them into your shpotify config file at ${HOME}/.shpotify.cfg.

Be sure to quote your values and don’t add any extra spaces. When done, it should look like the following (but with your own values):

CLIENT_ID="abc01de2fghijk345lmnop"
CLIENT_SECRET="qr6stu789vwxyz"

Usage

With shpotify you can control Spotify with the following commands:

spotify play                       Resumes playback where Spotify last left off.
spotify play <song name>           Finds a song by name and plays it.
spotify play album <album name>    Finds an album by name and plays it.
spotify play artist <artist name>  Finds an artist by name and plays it.
spotify play list <playlist name>  Finds a playlist by name and plays it.
spotify play uri <uri>             Play songs from specific uri.

spotify next                       Skips to the next song in a playlist.
spotify prev                       Returns to the previous song in a playlist.
spotify replay                     Replays the current track from the beginning.
spotify pos <time>                 Jump to a specific time (in seconds) in the current song.
spotify pause                      Pauses (or resumes) Spotify playback.
spotify stop                       Stops playback.
spotify quit                       Stops playback and quits Spotify.

spotify vol up                     Increases the volume by 10%.
spotify vol down                   Decreases the volume by 10%.
spotify vol <amount>               Sets the volume to an amount between 0 and 100.
spotify vol [show]                 Shows the current volume.

spotify status                     Shows the play status, including the current song details.
spotify status artist              Shows the currently playing artist.
spotify status album               Shows the currently playing album.
spotify status track               Shows the currently playing track.

spotify share                      Displays the current song's Spotify URL and URI.
spotify share url                  Displays the current song's Spotify URL and copies it to the clipboard.
spotify share uri                  Displays the current song's Spotify URI and copies it to the clipboard.

spotify toggle shuffle             Toggles shuffle playback mode.
spotify toggle repeat              Toggles repeat playback mode.

Authors and contributing

shpotify is primarily written and maintained by Harish Narayanan.

Since it’s an open source project, it contains numerous contributions from many helpful people, including:

  • Jorge Colindres
  • Thomas Pritchard
  • iLan Epstein
  • Gabriele Bonetti
  • Sean Heller
  • Eric Martin
  • Peter Fonseca

If you’re interested in contributing too, please consider addressing some of the issues people have previously reported and submitting a pull request. Thank you!

Copyright and license

Copyright (c) 2012–2021 Harish Narayanan.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].