summaryrefslogtreecommitdiffstats
path: root/examples/crtc-detection
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/crtc-detection3
1 files changed, 0 insertions, 3 deletions
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)