awesome-wm-widgets/_widgets/spotify.md

27 lines
916 B
Markdown
Raw Normal View History

2017-03-12 03:02:54 +01:00
---
layout: page
---
2017-02-02 04:15:19 +01:00
# Spotify widget
2017-03-12 03:02:54 +01:00
This widget displays currently playing song on [Spotify for Linux](https://www.spotify.com/download/linux/) client: ![screenshot](https://github.com/streetturtle/AwesomeWM/blob/master/spotify-widget/spo-wid-1.png?raw=true).
2017-02-02 04:15:19 +01:00
Note that widget uses the Arc icon theme, so it should be [installed](https://github.com/horst3180/arc-icon-theme#installation) first under **/usr/share/icons/Arc/** 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](http://pavelmakhov.com/2016/02/awesome-wm-spotify)
To use this widget put **spotify.lua** under **~/.config/awesome/** and add it in **rc.lua**:
```lua
require("spotify")
...
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
...
spotify_widget,
...
```