Mouse click to stop/start playing music

This commit is contained in:
streetturtle 2017-06-03 20:43:03 -04:00 committed by GitHub
parent cbe2cce046
commit ec26e2902c

View file

@ -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)