From a407046ca301ab5616b5da4630332e11ac71ca0e Mon Sep 17 00:00:00 2001 From: ibrokemypie Date: Sat, 3 Jun 2017 15:52:25 +1000 Subject: [PATCH] [modules/pulseaduio] Allow user choice for giht click command This allows using eg. pavucontrol-qt or any other command on right click. --- bumblebee/modules/pulseaudio.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bumblebee/modules/pulseaudio.py b/bumblebee/modules/pulseaudio.py index 0bf88f4..5a3f7b2 100644 --- a/bumblebee/modules/pulseaudio.py +++ b/bumblebee/modules/pulseaudio.py @@ -2,6 +2,10 @@ """Displays volume and mute status of PulseAudio devices. + +Parameters: + * pasink.controlApp : What program to run on right click (defaults to pavucontrol) + Aliases: pasink, pasource Requires the following executable: @@ -35,7 +39,7 @@ class Module(bumblebee.engine.Module): { "expr": "Volume:", "callback": self.getvolume }, ] - engine.input.register_callback(self, button=bumblebee.input.RIGHT_MOUSE, cmd="pavucontrol") + engine.input.register_callback(self, button=bumblebee.input.RIGHT_MOUSE, cmd=self.parameter("controlApp", "pavucontrol")) events = [ { "type": "mute", "action": "toggle", "button": bumblebee.input.LEFT_MOUSE },