From 581dbd784a5f6bdd1b064e44e27066ce687f5dd8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 14 Mar 2014 03:06:20 +0100 Subject: add ttymode support for all examples missing it and uses randr or vidmode, except the xmonad example becuase xmonad does not run in tty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/current-settings | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/current-settings') diff --git a/examples/current-settings b/examples/current-settings index 8c8afe8..62d5e7d 100644 --- a/examples/current-settings +++ b/examples/current-settings @@ -15,7 +15,7 @@ temperature_to = int(parser.opts['--temperature'][0]) # Get current colour curves -randr_get(0)() +(drm_get if ttymode else randr_get)(0)() r_, g_, b_ = r_curve[:], g_curve[:], b_curve[:] start_over() @@ -41,7 +41,7 @@ def adjust(alpha): ccc = [(out, list(map(f, zip(old, new)))) for out, (old, new) in ccc] for out, curve in ccc: out[:] = curve - randr(0) + (drm if ttymode else randr)(0) # Perform transition if divergence and not panicgate: -- cgit v1.2.3-70-g09d2