diff options
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-x | src/__main__.py | 5 |
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) |