diff options
-rwxr-xr-x | src/__main__.py | 11 |
1 files changed, 6 insertions, 5 deletions
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') |