diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-03-13 23:31:48 +0100 | 
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-03-13 23:31:48 +0100 | 
| commit | 24c87751ea37c948565d40cb84d7726466b0c4b0 (patch) | |
| tree | e2ff3bb543cd533f30e09f352d51da6bb3cdd45f /src/__main__.py | |
| parent | fix and demo drm support (diff) | |
| download | blueshift-24c87751ea37c948565d40cb84d7726466b0c4b0.tar.gz blueshift-24c87751ea37c948565d40cb84d7726466b0c4b0.tar.bz2 blueshift-24c87751ea37c948565d40cb84d7726466b0c4b0.tar.xz | |
ttymode variable + document drm support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
| -rwxr-xr-x | src/__main__.py | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/__main__.py b/src/__main__.py index e894221..39e880f 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -89,7 +89,12 @@ wait_period = 60  :float  The number of seconds to wait before invoking `periodically` again  ''' -monitor_controller = lambda : randr() +ttymode = not (('DISPLAY' in os.environ) and (':' in os.environ['DISPLAY'])) +''' +:bool  Whether blueshift is running in a TTY, determined by the DISPLAY environment variable +''' + +monitor_controller = (lambda : drm()) if ttymode else (lambda : randr())  '''  :()→void  Function used by Blueshift on exit to apply reset colour curves, if using preimplemented `reset`  ''' | 
