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/sleepmode | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/sleepmode') diff --git a/examples/sleepmode b/examples/sleepmode index 00ec3dd..8713b63 100644 --- a/examples/sleepmode +++ b/examples/sleepmode @@ -123,9 +123,9 @@ def periodically(year, month, day, hour, minute, second, weekday, fade): # Flush settings to monitor. if len(monitors) == 0: - randr() + (drm if ttymode else randr)() else: - randr(monitors[m % len(monitors)]) + (drm if ttymode else randr)(monitors[m % len(monitors)]) def reset(): @@ -144,7 +144,7 @@ def reset(): # Flush settings to monitor. if len(monitors) == 0: - randr() + (drm if ttymode else randr)() else: - randr(monitors[m % len(monitors)]) + (drm if ttymode else randr)(monitors[m % len(monitors)]) -- cgit v1.2.3-70-g09d2