1.8 KiB
1.8 KiB
layout |
---|
page |
Spotify widget
This widget displays currently playing song on Spotify for Linux client: ![screenshot]({{'/assets/img/screenshots/spotify-widget.png' | relative_url }}) 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.
Installation
-
Install sp - CLI client for Spotify for Linux:
$ sudo git clone https://gist.github.com/fa6258f3ff7b17747ee3.git ~/dev/ $ sudo ln -s ~/dev/sp /usr/local/bin/
Check if it works by running
sp help
. -
Get an 'id' and 'secret' from developer.spotify.com and paste it in the header of the
sp
(SP_ID
andSP_SECRET
) - this enables search feature. -
Clone this repo under ~/.config/awesome/
git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/
-
Require spotify-widget at the beginning of rc.lua:
local spotify_widget = require("awesome-wm-widgets.spotify-widget.spotify")
-
Add widget to the tasklist:
s.mytasklist, -- Middle widget { -- Right widgets layout = wibox.layout.fixed.horizontal, ... spotify_widget, ...