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
1 changed files with 4 additions and 0 deletions

View File

@ -16,3 +16,7 @@ watch(
spotify_widget:set_text(stdout) spotify_widget:set_text(stdout)
end end
) )
spotify_widget:connect_signal("button::press", function(_,_,_,button)
if (button == 1) then awful.spawn("sp play", false) end
end)