From f5d296df8092df5cdb8035522c9040c3f90f8d70 Mon Sep 17 00:00:00 2001 From: Zero Rust Date: Sun, 17 May 2020 08:03:03 -0400 Subject: [PATCH] adding first version of arandr module to contrib --- bumblebee_status/modules/contrib/arandr.py | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bumblebee_status/modules/contrib/arandr.py diff --git a/bumblebee_status/modules/contrib/arandr.py b/bumblebee_status/modules/contrib/arandr.py new file mode 100644 index 0000000..7d7960f --- /dev/null +++ b/bumblebee_status/modules/contrib/arandr.py @@ -0,0 +1,28 @@ +# pylint: disable=C0111,R0903 + +"""My TEST + +Requires the following executable: + * arandr + * xrandr +""" + +import core.module +import core.widget +import core.input +import core.decorators + + +class Module(core.module.Module): + @core.decorators.never + def __init__(self, config, theme): + super().__init__(config, theme, core.widget.Widget("")) + + core.input.register( + self, + button=core.input.LEFT_MOUSE, + cmd="arandr", + ) + + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4