Mouse click to stop/start playing music
This commit is contained in:
parent
cbe2cce046
commit
ec26e2902c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue