diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-16 00:57:06 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-16 00:57:06 +0100 |
commit | 252ad660e4151c069c14af31f40d2cda59a2154d (patch) | |
tree | 8d26d00b7e2f340eb2590efba23bd7ac59509dd8 | |
parent | selectable screen (diff) | |
download | blueshift-252ad660e4151c069c14af31f40d2cda59a2154d.tar.gz blueshift-252ad660e4151c069c14af31f40d2cda59a2154d.tar.bz2 blueshift-252ad660e4151c069c14af31f40d2cda59a2154d.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-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') |