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
  • 46 minutes ago
  • 12 years ago

Installs

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