summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ.M. Dana <jmdana@gmail.com>2015-02-21 12:49:38 +0000
committerJ.M. Dana <jmdana@gmail.com>2015-02-21 13:17:27 +0000
commitd10ede19747751c0a422e3f79a2cdfb8274e750c (patch)
tree24225dbec73f6f9fa16800edbf68b7807497da07
parent151d108c57cc13ff7b140e78f746b1e6ba8e327c (diff)
[DPMS] Activate/deactivate the screensaver as well.
The DPMS module allows activation/deactivation of DPMS and does it well. However, the purpose of deactivating DPMS is, in most cases, to avoid the screen going blank. If the screensaver is not deactivated then the screen will go blank anyway. This commits allow simultaneous activation/deactivation of both.
-rw-r--r--py3status/modules/dpms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/py3status/modules/dpms.py b/py3status/modules/dpms.py
index ba7437e..bcef53c 100644
--- a/py3status/modules/dpms.py
+++ b/py3status/modules/dpms.py
@@ -38,8 +38,8 @@ class Py3status:
if event['button'] == 1:
if self.run:
self.run = False
- system("xset -dpms")
+ system("xset -dpms;xset s off")
else:
self.run = True
- system("xset +dpms")
+ system("xset +dpms;xset s on")
system("killall -USR1 py3status")