[modules] Add default click events to various modules
* cpu+memory: Open "gnome-system-monitor" * disk: Open nautilus * pulseaudio: Mute/unmute, open "pavucontrol" on right-click, raise/lower volume on mouse wheel up/down
This commit is contained in:
parent
fca3171556
commit
4c34cd37d4
4 changed files with 18 additions and 2 deletions
|
@ -15,6 +15,9 @@ class Module(bumblebee.module.Module):
|
|||
super(Module, self).__init__(args)
|
||||
self._perc = psutil.cpu_percent(percpu=False)
|
||||
|
||||
output.add_callback(module=self.__module__, button=1,
|
||||
cmd="gnome-system-monitor")
|
||||
|
||||
def data(self):
|
||||
self._perc = psutil.cpu_percent(percpu=False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue