diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2017-03-31 22:11:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-31 22:11:09 -0400 |
commit | 5d07f910723eda392ff4ed5827a0c9bdf2a68124 (patch) | |
tree | bbae4856a43a2f70c579045aef64fcc7950c1c3b /spotify-widget | |
parent | d2632b5c753b93856dc2e1adb3f06eebea86e2ec (diff) |
Update spotify.lua
Diffstat (limited to 'spotify-widget')
-rw-r--r-- | spotify-widget/spotify.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spotify-widget/spotify.lua b/spotify-widget/spotify.lua index dcca1c0..0007e24 100644 --- a/spotify-widget/spotify.lua +++ b/spotify-widget/spotify.lua @@ -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() @@ -14,4 +15,4 @@ watch( function(widget, stdout, stderr, exitreason, exitcode) spotify_widget:set_text(stdout) end -)
\ No newline at end of file +) |