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
  • 11 years ago
  • 2 hours ago
  • 12 years ago

Installs

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