summaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-17 01:29:14 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-17 01:29:14 +0100
commit259a1f4dc9e5d0576db2fe27160caf8afafd0b9a (patch)
tree0c0970763e2437549aab11ff3a9b67e53f017bf8 /src/__main__.py
parentdoes not belong here (diff)
downloadblueshift-259a1f4dc9e5d0576db2fe27160caf8afafd0b9a.tar.gz
blueshift-259a1f4dc9e5d0576db2fe27160caf8afafd0b9a.tar.bz2
blueshift-259a1f4dc9e5d0576db2fe27160caf8afafd0b9a.tar.xz
doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-xsrc/__main__.py30
1 files changed, 6 insertions, 24 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 45ba7db..6a58054 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -37,30 +37,6 @@ from monitor import *
config_file = None
-def periodically(year, month, day, hour, minute, second, weekday, fade):
- fadein_time = None
- fadeout_time = None
- fadein_steps = 100
- fadeout_steps = 100
- start_over()
- if fade is None:
- negative(False, False, False)
- temperature(6500, lambda T : divide_by_maximum(series_d(T)))
- temperature(6500, lambda T : clip_whitepoint(simple_whitepoint(T)))
- temperature(6500, cmf_2deg)
- temperature(6500, cmf_10deg)
- rgb_contrast(1.0, 1.0, 1.0)
- cie_contrast(1.0)
- rgb_brightness(1.0, 1.0, 1.0)
- cie_brightness(1.0)
- gamma(1.0, 1.0, 1.0)
- sigmoid(None, None, None)
- manipulate(lambda r : r, lambda g : g, lambda b : b)
- clip()
- randr(1, 2)
-
-
-
periodically = None
'''
:(int, int, int, int, int, int, int, float?)?→void Place holder for periodically invoked function
@@ -134,6 +110,12 @@ running = True
def signal_SIGTERM(signum, frame):
+ '''
+ Signal handler for SIGTERM
+
+ @param signum The signal number, 0 if called from the program itself
+ @param frame Ignore, it will probably be `None`
+ '''
global running
if not running:
running = False