mirror of
https://github.com/streetturtle/awesome-wm-widgets.git
synced 2024-11-17 07:49:09 +01:00
Mouse click to stop/start playing music
This commit is contained in:
parent
cbe2cce046
commit
ec26e2902c
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue