diff options
-rw-r--r-- | spotify-widget/spotify.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spotify-widget/spotify.lua b/spotify-widget/spotify.lua index 0007e24..1a41ad0 100644 --- a/spotify-widget/spotify.lua +++ b/spotify-widget/spotify.lua @@ -16,3 +16,7 @@ watch( spotify_widget:set_text(stdout) end ) + +spotify_widget:connect_signal("button::press", function(_,_,_,button) + if (button == 1) then awful.spawn("sp play", false) end +end) |