GithubHelp home page GithubHelp logo

bryantung / btspotifygeeklet Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 7.0 1.21 MB

Geeklet for Spotify player, shows track info and artwork

Shell 35.49% JavaScript 64.51%
album artwork geektool music player spotify track

btspotifygeeklet's Introduction

BTSpotifyGeeklet

Geeklet for Spotify player, shows track info and artwork

Instructions

###Easy setup

  1. download the zip file from releases tab
  2. decompress the downloaded glet.zip
  3. open the SpotifyGeeklet/glet folder
  4. open each file in GeekTool
  5. you can rearrange the geeklets to your desired position

###Using the codes
In Shell Geeklet, type in command:
Without arguments

osascript path_to_script

Result

TrackName
TrackArtist
TrackAlbum
TrackTime

Running without argument will also update the Artwork.tiff file

With arguments

osascript path_to_script -name     // return track name
osascript path_to_script -artist   // return track artist
osascript path_to_script -album    // return track album
osascript path_to_script -time     // return track time/duration
osascript path_to_script -artwork  // update Artwork.tiff

In Image Geeklet, set the path to path_to_script_folder/Artwork.tiff

Refresh geeklets with duration of 1-5 secs, depending on your preference

Extras

If you don't want the Spotify icon as the default artwork, there's another transparent icon in path_to_script_folder/DefaultArtwork/DefaultArtworkTrans.tiff, rename it to DefaultArtwork.tiff. If you prefer another icon image, you can just replace the DefaultArtwork.tiff.

Screenshot

Credit

AppleScript to show current song and artwork in Geektool
By Luc-Olivier Dumais-Blais
31-08-2012
*version 0.5.1*

Modified from https://github.com/Lucconouche/SpotifyNowPlaying

btspotifygeeklet's People

Contributors

bryantung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.