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

Night​Cycle

by forty-two ST2

Sublime Text 2 plugin for changing colour scheme according to time of day

Details

  • 2014.02.02.12.21.08
  • github.​com
  • github.​com
  • 10 years ago
  • 2 hours ago
  • 11 years ago

Installs

  • Total 423
  • Win 170
  • Mac 189
  • Linux 64
Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7
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 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
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

NightCycle

Changes a user's Sublime Text 2 colour scheme and UI theme automatically according to what time of day it is.

Usage

Install in your preferred fashion, then restart Sublime Text.

If desired, configure your time periods and desired colour schemes by editing the config file, which can be accessed through these steps:

Preferences menu -> Package Settings -> NightCycle -> Settings - User

This file will initially be blank, look at the contents of “Settings - Default” to get the configuration structure (it's easiest to copy the default configuration over and then edit from that base).

The default time periods are 'day' and 'night', switching between Solarized Light and Solarized Dark at 0700 hours and 1700 hours respectively.

Time periods should not overlap, as this could result in rapid switching between the overlapping colour schemes.

If no configured time period is found for a given time, the current colour scheme will continue to be used.

Start and end times must use 24 hour time in the format Hour:Minute in order to be recognised, use the default config as a guide if unsure.

Acknowledgements

urbushey for the original idea

p4ul for contributing code on user settings

Scott Bai for adding in UI theme support