summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/__main__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/__main__.py b/src/__main__.py
index f803824..27c025e 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -419,7 +419,10 @@ if (config_file is None) and any([doreset, location] + settings):
while running:
apply(alpha(), trans if doreset else 1 - trans)
trans += 0.05
- time.sleep(0.1)
+ try:
+ time.sleep(0.1)
+ except KeyboardInterrupt:
+ signal_SIGTERM(0, None)
if trans >= 1:
break
apply(alpha(), 1 if doreset else 0)