[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
|
@ -16,8 +16,8 @@ class Module(bumblebee.module.Module):
|
|||
super(Module, self).__init__(args)
|
||||
self._path = args[0] if args else "/"
|
||||
|
||||
output.add_callback(module=self.__module__,
|
||||
button=1, cmd="nautilus {instance}")
|
||||
output.add_callback(module=self.__module__, button=1,
|
||||
cmd="nautilus {instance}")
|
||||
|
||||
def data(self):
|
||||
st = os.statvfs(self._path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue