From d10ede19747751c0a422e3f79a2cdfb8274e750c Mon Sep 17 00:00:00 2001 From: "J.M. Dana" Date: Sat, 21 Feb 2015 12:49:38 +0000 Subject: [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. --- py3status/modules/dpms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py3status/modules/dpms.py') 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") -- cgit v1.3