ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Ambient​Color​Scheme

by vyatu OS X ST2/ST3

Switch Sublime Text 3 color scheme based on ambient light readings

Details

Installs

  • Total 18
  • Win 0
  • OS X 18
  • Linux 0
Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 1 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1 1 1 1 0 1 0 0 0 1 4 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

AmbientColorScheme

Switch Sublime Text 3 color scheme based on ambient light readings

Motivation

I was tired of switching between Sublime's color schemes while working in differently lit environments. This package checks for changes in light sensor's readings and changes the color scheme accordingly.

Compatibility

The plugin will only work on Macbooks running macOS, as the light sensor code included in the project as a shared library uses OSX-specific calls. If you know of a way to support other LMUs and are willing to test the changes, GitHub issues and pull requests are greatly appreciated!

Developer info

If you stumbled upon this project and wanted to make use of the LMU code, it is included in the src directory and can be compiled as a shared library via:

$ clang -c lmu.c -o lmu.o
$ clang -shared -framework IOKit -o lmulib.so lmu.o

Additional info

The project was tested on a MacBook Pro (Early 2015) running macOS 10.14.5 Mojave and Sublime Text version 3.2.1, build 3207.