From 24c87751ea37c948565d40cb84d7726466b0c4b0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 13 Mar 2014 23:31:48 +0100 Subject: ttymode variable + document drm support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/crtc-detection | 3 --- 1 file changed, 3 deletions(-) (limited to 'examples/crtc-detection') diff --git a/examples/crtc-detection b/examples/crtc-detection index 000dfce..9b3b2ed 100644 --- a/examples/crtc-detection +++ b/examples/crtc-detection @@ -7,9 +7,6 @@ # The colour temperature to apply. temp = 6500 -# Check if we are in X or TTY. -ttymode = not (('DISPLAY' in os.environ) and (':' in os.environ['DISPLAY'])) - # List all connected outputs. outputs = list_screens('drm' if ttymode else 'randr').find_by_connected(True) -- cgit v1.2.3-70-g09d2