summaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-14 19:37:41 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-14 19:37:41 +0100
commit67a9d825c9d2a216ddda468c5f7fd5a9a8ebd2b9 (patch)
tree8680269fc9a63059f50039b28af7b103220298c5 /src/__main__.py
parentadd parameter fade to periodically (diff)
downloadblueshift-67a9d825c9d2a216ddda468c5f7fd5a9a8ebd2b9.tar.gz
blueshift-67a9d825c9d2a216ddda468c5f7fd5a9a8ebd2b9.tar.bz2
blueshift-67a9d825c9d2a216ddda468c5f7fd5a9a8ebd2b9.tar.xz
add wait_period
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-xsrc/__main__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 06373f1..729d879 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -24,6 +24,10 @@ def periodically(year, month, day, hour, minute, second, weekday, fade):
'''
Invoked periodically
+ If you want to control at what to invoke this function next time
+ you can set the value of the global variable `wait_period` to the
+ number of seconds to wait before invocing this function again.
+
@param year:int The year
@param month:int The month, 1 = January, 12 = December
@param day:int The day, minimum value is 1, probable maximum value is 31 (*)
@@ -65,7 +69,8 @@ def periodically(year, month, day, hour, minute, second, weekday, fade):
## Set globals accessible by rc
periodically = None
-global DATADIR, i_size, o_size, r_curve, g_curve, b_curve, clip_result, periodically
+wait_period = 60
+global DATADIR, i_size, o_size, r_curve, g_curve, b_curve, clip_result, periodically, wait_period
## Load extension and configurations via ponysayrc