Add support for switching dpms
This commit is contained in:
parent
4db9c714bb
commit
7b08777d77
1 changed files with 2 additions and 0 deletions
|
@ -39,9 +39,11 @@ class Module(bumblebee.engine.Module):
|
||||||
|
|
||||||
def _toggle(self, widget):
|
def _toggle(self, widget):
|
||||||
if self._active():
|
if self._active():
|
||||||
|
bumblebee.util.execute("xset +dpms")
|
||||||
bumblebee.util.execute("xset s default")
|
bumblebee.util.execute("xset s default")
|
||||||
bumblebee.util.execute("notify-send \"Out of coffee\"")
|
bumblebee.util.execute("notify-send \"Out of coffee\"")
|
||||||
else:
|
else:
|
||||||
|
bumblebee.util.execute("xset -dpms")
|
||||||
bumblebee.util.execute("xset s off")
|
bumblebee.util.execute("xset s off")
|
||||||
bumblebee.util.execute("notify-send \"Consuming caffeine\"")
|
bumblebee.util.execute("notify-send \"Consuming caffeine\"")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue