From 252ad660e4151c069c14af31f40d2cda59a2154d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 16 Feb 2014 00:57:06 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/__main__.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/__main__.py') diff --git a/src/__main__.py b/src/__main__.py index cee2f85..39373ff 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -22,6 +22,11 @@ from curve import * from monitor import * +## Set globals variables +global DATADIR, i_size, o_size, r_curve, g_curve, b_curve, clip_result +global periodically, wait_period, monitor_controller + + def periodically(year, month, day, hour, minute, second, weekday, fade): ''' Invoked periodically @@ -68,6 +73,7 @@ def periodically(year, month, day, hour, minute, second, weekday, fade): sigmoid(None, None, None) manipulate(lambda r : r, lambda g : g, lambda b : b) clip() + randr(1, 2) @@ -97,11 +103,6 @@ fadeout_time = 10 ''' -## Set globals variables -global DATADIR, i_size, o_size, r_curve, g_curve, b_curve, clip_result -global periodically, wait_period, monitor_controller - - ## Load extension and configurations via ponysayrc for file in ('$XDG_CONFIG_HOME/%/%rc', '$HOME/.config/%/%rc', '$HOME/.%rc', '/etc/%rc'): file = file.replace('%', 'blueshift') -- cgit v1.2.3-70-g09d2