Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smhg/sublime-suncycle
Sublime Text layout switch based on sunrise and sunset at your location.
https://github.com/smhg/sublime-suncycle
Last synced: about 2 months ago
JSON representation
Sublime Text layout switch based on sunrise and sunset at your location.
- Host: GitHub
- URL: https://github.com/smhg/sublime-suncycle
- Owner: smhg
- License: mit
- Created: 2014-01-17T17:26:21.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T16:29:51.000Z (over 7 years ago)
- Last Synced: 2024-04-15T03:04:46.495Z (9 months ago)
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 12
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Unmaintained
============
This project is no longer maintained (except for PR's, which will still be merged).
Feel free to create an issue in case you want to take over and I'll transfer the repository.SunCycle
========Sublime Text 3 layout switch based on sunrise and sunset at your location.
![Sublime Text Console](http://smhg.github.io/sublime-suncycle/suncycle.png)
Some of Sublime Text's color schemes are at their best either during day or night.
This package lets you automatically switch between 2 color schemes (and optionally a theme) based on your local sunrise and sunset (which takes [DST](http://en.wikipedia.org/wiki/Daylight_saving_time) into account).By default, an IP address lookup with [freegeoip.net](https://freegeoip.net/) determines your location. So the switch is adjusted when you travel across timezones.
You can hardcode your coordinates in case you don't prefer an IP lookup or it fails.
## Installation
Install with [Package Control](https://sublime.wbond.net/).## Default preferences
```json
{
"day": {
"color_scheme": "Packages/User/Solarized (Light) (SL).tmTheme",
"theme": "Default.sublime-theme"
},
"night": {
"color_scheme": "Packages/User/Solarized (Dark) (SL).tmTheme",
"theme": "Default.sublime-theme"
}
}
```
The optional `latitude` and `longitude` configuration properties allow you to specify a fixed location.## Credits
Inspired by [NightCycle](https://github.com/forty-two/NightCycle) and based on Michel Anders' [blogpost](http://michelanders.blogspot.hu/2010/12/calulating-sunrise-and-sunset-in-python.html).
Thanks to [Stijn Mathysen](https://github.com/stijnster) for contributing the IP lookup.