From 7b08777d77d6cfd5a4eeeee81fb51f5fdedde987 Mon Sep 17 00:00:00 2001 From: mw Date: Wed, 19 Jun 2019 22:26:48 +0200 Subject: [PATCH] Add support for switching dpms --- bumblebee/modules/caffeine.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee/modules/caffeine.py b/bumblebee/modules/caffeine.py index 2354ed0..91fb0e9 100644 --- a/bumblebee/modules/caffeine.py +++ b/bumblebee/modules/caffeine.py @@ -39,9 +39,11 @@ class Module(bumblebee.engine.Module): def _toggle(self, widget): if self._active(): + bumblebee.util.execute("xset +dpms") bumblebee.util.execute("xset s default") bumblebee.util.execute("notify-send \"Out of coffee\"") else: + bumblebee.util.execute("xset -dpms") bumblebee.util.execute("xset s off") bumblebee.util.execute("notify-send \"Consuming caffeine\"")