diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/comprehensive | 3 | ||||
-rw-r--r-- | examples/crtc-detection | 3 | ||||
-rw-r--r-- | examples/crtc-searching | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/examples/comprehensive b/examples/comprehensive index 380bf39..0ffa42d 100644 --- a/examples/comprehensive +++ b/examples/comprehensive @@ -43,9 +43,6 @@ def by_time(): return 1 # Error in `time_alpha` (probably) -# Check if we are in X or TTY. -ttymode = not (('DISPLAY' in os.environ) and (':' in os.environ['DISPLAY'])) - # Method for applying colour curves. apply_curves = randr #apply_curves = vidmode 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) diff --git a/examples/crtc-searching b/examples/crtc-searching index 0539f0e..36b56fb 100644 --- a/examples/crtc-searching +++ b/examples/crtc-searching @@ -7,9 +7,6 @@ # but `Screen.crtc_count` is much more effective. -# Check if we are in X or TTY. -ttymode = not (('DISPLAY' in os.environ) and (':' in os.environ['DISPLAY'])) - # We want to use the ad-hoc mode options. uses_adhoc_opts = True |