From 30dd0f2efb6778924f4d9d9fd34a61d32d2fc51c Mon Sep 17 00:00:00 2001 From: Frank Scherrer Date: Thu, 13 Jan 2022 11:05:01 +0100 Subject: [PATCH] add updating view on apt-cache on click --- bumblebee_status/modules/contrib/apt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bumblebee_status/modules/contrib/apt.py b/bumblebee_status/modules/contrib/apt.py index b7200bb..575968f 100644 --- a/bumblebee_status/modules/contrib/apt.py +++ b/bumblebee_status/modules/contrib/apt.py @@ -14,6 +14,7 @@ import threading import core.module import core.widget import core.decorators +import core.input import util.cli @@ -56,6 +57,8 @@ class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(self.updates)) self.__thread = None + core.input.register(self, button=core.input.RIGHT_MOUSE, + cmd=self.updates) def updates(self, widget): if widget.get("error"):