summaryrefslogtreecommitdiffstats
path: root/py3status/modules/dpms.py
diff options
context:
space:
mode:
Diffstat (limited to 'py3status/modules/dpms.py')
-rw-r--r--py3status/modules/dpms.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/py3status/modules/dpms.py b/py3status/modules/dpms.py
index c2d9c4e..cfc7213 100644
--- a/py3status/modules/dpms.py
+++ b/py3status/modules/dpms.py
@@ -25,9 +25,13 @@ class Py3status:
"""
Display a colorful state of DPMS.
"""
+
+ self.run = system('xset -q | grep -iq "DPMS is enabled"') == 0
+
response = {
'full_text': 'DPMS'
}
+
if self.run:
response['color'] = i3s_config['color_good']
else: