This commit is contained in:
Pavel Makhov 2017-04-14 09:59:25 -04:00
commit fc438f8419
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,8 @@
This widget displays currently playing song on [Spotify for Linux](https://www.spotify.com/download/linux/) client: ![screenshot](./spo-wid-1.png).
If clicked plays/pauses the music.
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

View File

@ -4,6 +4,7 @@ local watch = require("awful.widget.watch")
spotify_widget = wibox.widget.textbox()
spotify_widget:set_font('Play 9')
spotify_widget:connect_signal("button::release", function() awful.spawn('sp play'); end)
-- optional icon, could be replaced by spotfiy logo (https://developer.spotify.com/design/)
spotify_icon = wibox.widget.imagebox()