Merge pull request #114 from teto/change_mpd_song_on_scroll
Mousewheel up will play next song, down will play previous song
This commit is contained in:
commit
f323917701
@ -104,3 +104,15 @@ class MPD(IntervalModule):
|
|||||||
self._mpd_command(self.s, "next")
|
self._mpd_command(self.s, "next")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def on_upscroll(self):
|
||||||
|
try:
|
||||||
|
self._mpd_command(self.s, "next")
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
|
|
||||||
|
def on_downscroll(self):
|
||||||
|
try:
|
||||||
|
self._mpd_command(self.s, "previous")
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user