Skip to content

rust app to display the album art for the currently playing album on spotify

Notifications You must be signed in to change notification settings

quartztz/desktify-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desktify: a somewhat overcomplicated app for a somewhat simple job.

as the description implies.

opens a window on your desktop, showing the album art for the currently playing song. if the song changes and i've done my job right, the album art will react accordingly.

setup and use

build and setup

you need a Spotify developer account, a valid project (should be straightforward enough to create), and the following environment variables set:

  • SPOTIPY_CLIENT_ID
  • SPOTIPY_CLIENT_SECRET
  • SPOTIPY_REDIRECT_URI in accordance to what they are set to in your account.

make sure to compile before running:

cargo build --release

dependencies:

  • spotipy
  • json

usage

simply run ./run with an optional argument for size:

./run <size: {int or empty}>

default size is 400x400px, non resizable while running unfortunately. to stop, simply press q or Esc while the window is in focus, or hit ctrl-c while the terminal you ran from is in focus.

TODOS

  • fix expiring token issue.
  • find a way to kill the python processes on exit.
  • make the window resizable (implemented-ish).
  • cache images to reduce bandwidth usage (use file/album name as key?).
  • make it less complicated.

About

rust app to display the album art for the currently playing album on spotify

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published