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

Ambient​Color​Scheme

by vtu-dog Mac ALL

Switch Sublime Text 3 color scheme based on ambient light readings

Details

Installs

  • Total 403
  • Win 0
  • Mac 403
  • Linux 0
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 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
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
Mac 0 1 1 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
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.