summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTHEBAULT Julien <julien.thebault@1000mercis.com>2015-03-26 00:44:29 +0100
committerTHEBAULT Julien <julien.thebault@1000mercis.com>2015-03-26 00:44:29 +0100
commited5cc6b7c15c45a04ae8fe9f659175d6f4effac3 (patch)
treef424adda9be791e15ed7ac2a26160e959457ad38
parent820e0731ba350a84a67140aa60bc07556d0af105 (diff)
[FIX] retrieves the layout with polling for hardware changes
- using the --current option return the current screen configuration, without polling for hardware changes.
-rw-r--r--py3status/modules/xrandr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/py3status/modules/xrandr.py b/py3status/modules/xrandr.py
index 2d3e757..4ddd856 100644
--- a/py3status/modules/xrandr.py
+++ b/py3status/modules/xrandr.py
@@ -75,7 +75,7 @@ class Py3status:
def _get_layout(self):
"""
- Get the current outputs layout from xrandr and try to detect the
+ Get the outputs layout from xrandr and try to detect the
currently active layout as best as we can on start.
"""
connected = list()
@@ -88,7 +88,7 @@ class Py3status:
}
)
- current = Popen(['xrandr', '--current'], stdout=PIPE)
+ current = Popen(['xrandr'], stdout=PIPE)
for line in current.stdout.readlines():
try:
# python3