From ed5cc6b7c15c45a04ae8fe9f659175d6f4effac3 Mon Sep 17 00:00:00 2001 From: THEBAULT Julien Date: Thu, 26 Mar 2015 00:44:29 +0100 Subject: [FIX] retrieves the layout with polling for hardware changes - using the --current option return the current screen configuration, without polling for hardware changes. --- py3status/modules/xrandr.py | 4 ++-- 1 file 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 -- cgit v1.3