diff --git a/bumblebee_status/modules/core/nic.py b/bumblebee_status/modules/core/nic.py index 09fe487..64ee226 100644 --- a/bumblebee_status/modules/core/nic.py +++ b/bumblebee_status/modules/core/nic.py @@ -25,6 +25,7 @@ import subprocess import core.module import core.decorators +import core.input import util.cli import util.format @@ -58,6 +59,8 @@ class Module(core.module.Module): self.iw = shutil.which("iw") self._update_widgets(widgets) + core.input.register(self, button=core.input.LEFT_MOUSE, cmd='/usr/local/bin/wifi-menu') + core.input.register(self, button=core.input.RIGHT_MOUSE, cmd='nm-connection-editor') def update(self): self._update_widgets(self.widgets()) @@ -88,7 +91,7 @@ class Module(core.module.Module): def _iswlan(self, intf): # wifi, wlan, wlp, seems to work for me - if intf.startswith("w"): + if intf.startswith("w") and not intf.startswith("wwan"): return True return False