From 18b0e793cb32d1e731c94f3c99a39a212562c30d Mon Sep 17 00:00:00 2001 From: Michael Kwardakov Date: Mon, 14 Jan 2019 12:03:47 +0300 Subject: [PATCH] mocp toggles shuffle on right click --- bumblebee/modules/mocp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bumblebee/modules/mocp.py b/bumblebee/modules/mocp.py index 16a117f..1ab5b29 100644 --- a/bumblebee/modules/mocp.py +++ b/bumblebee/modules/mocp.py @@ -1,7 +1,7 @@ # pylint: disable=C0111,R0903 # -*- coding: utf-8 -*- -"""Displays information about the current song in mocp. Left click toggles play/pause. +"""Displays information about the current song in mocp. Left click toggles play/pause. Right click toggles shuffle. Requires the following executable: * mocp @@ -38,6 +38,8 @@ class Module(bumblebee.engine.Module): engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd="mocp -G") + engine.input.register_callback(self, button=bumblebee.input.RIGHT_MOUSE, + cmd="mocp -t shuffle") self._format = self.parameter("format", "%state %artist - %song | %ct/%tt") self._running = 0