awesome-wm-widgets/spotify-widget
streetturtle 87e5a80aef Update README.md 2017-06-21 16:42:50 -04:00
..
README.md Update README.md 2017-06-21 16:42:50 -04:00
spo-wid-1.png spotify readme 2017-02-01 22:15:19 -05:00
spotify.lua Merge remote-tracking branch 'origin/master' 2017-06-17 12:48:03 -04:00
spotify_stat Add script to check if spotify is playing music 2017-06-17 12:49:15 -04:00

README.md

Spotify widget

This widget displays currently playing song on Spotify for Linux client: screenshot and consists of two parts:

  • status icon which shows if music is currently playing
  • artist and name of the current song playing

Controls

  • left click - play/pause
  • scroll up - play next song
  • scroll down - play previous song

Dependencies

Note that widget uses the Arc icon theme, so it should be installed first under /usr/share/icons/Arc/ folder.

Also this widget uses the output of the spotify_stat script which could be found in the widget folder.

Installation

First you need to have spotify CLI installed. Here is how you can do it (except widget part): pavelmakhov.com/2016/02/awesome-wm-spotify

To use this widget put spotify.lua under ~/.config/awesome/ and add it in rc.lua:

require("spotify")
...
s.mytasklist, -- Middle widget
	{ -- Right widgets
    	layout = wibox.layout.fixed.horizontal,
		...
        spotify_widget,
		...      

Troubleshooting

Status icon (play/pause) is not shown:

  • make spotify_stat script executable (by sudo chmod +x spotify_stat) and run it in terminal, output should be either RUNNING or CORKED;
  • the spotify_stat script is called by spotify.lua so make sure that get_spotify_status_cmd in spotify.lua contains the right path to the script;
  • create an issue :octocat:.