diff options
Diffstat (limited to 'examples/sleepmode')
-rw-r--r-- | examples/sleepmode | 8 |
1 files changed, 4 insertions, 4 deletions
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)]) |