This plugin integrates Spotify's Now Playing feature with XFCE Panel.
This is excellent to use when you use the Spotify Webapp, because you will always know what song is playing without switching between tabs.
and by the way, it looks cool :)
- Shows the current song playing.
- If you hover over the name, you will see the album
- If you click the name, you will be redirected to the Spotify song in the browser.
- Progress bar of the song.
- XFCE
- XFCE Plugin: Genmon (Generic Monitor)
- Jq (sudo apt install jq)
- CURL
For Linux Mint, you can download Genmon from the software manager.
- Create a Spotify App in your Spotify developer account
- Make it ask for these permissions:
- user-read-playback-state
- user-read-currently-playing
- Follow Spotify's OAuth guide until you get an Access Token and the Refresh Token
-
Download/Clone this repo
-
Put your configuration in the config.sh file, for this you will need an access_token, a refresh_token and an Auth Header
-
ACCESSTOKEN: This is the Access Token you got from the OAuth process described before
-
REFRESHTOKEN: This is the Refresh Token you got from the OAuth process described before
-
AUTHHEADER: Base 64 encoded string containing the basic authorization for your app. Format: base64(:). More details can be found in the Spotify's OAuth guide
-
-
Create a genmo item in your taskbar
-
Configure this genmo item to execute the file xfce-spotify-main.sh, hide the label and set a period of 10 seconds
-
Enjoy
Technically it doesn't, but it refreshes every 10 seconds (you can even lower down this number in the genmo settings) so it emulates being in real time
But I want real time info about the current playing song, I will lower down the refresh time to 1 second...
Hold on buddy, It's not that easy, Spotify has a requests limit (actually unknown) per Application/Hour. So you can lower down this number, but the plugin probably will stop working after a while.
Yes sure, just comment one line and it will be gone. Go to xfce-spotify-main.sh and comment these lines:
Line 33 - Song information
Line 34 - Album information when hovering
Line 35 - Progress Bar
Line 36 - Song Link
- Genmo for making this possible and very easy to code, you are awesome!
- All the StackOverflow community with their answers