🌃 Nightcall
Automatically switch between light and dark system themes on sunrise and sunset.
Getting Started
Prerequisites
As of today, Nightcall only works with macOS. Standalone installation will make most sense with Mojave (or newer) as this is the first version to have a proper dark OS theme.
Installing
Just run:
yarn global add nightcall
or:
npm i -g nightcall
Nightcall will be installed globally and automatic setup will follow right after installation.
There is a Nightcall (VS Code) extension available to switch between dark and light themes in VS Code in sync with Nightcall.
Running the tests
To run tests locally, go to the module directory and execute yarn run jest
Built With
- suncalc - for calculating sunrise and sunset
- public-ip - for obtaining public IP address
- api.ipstack.com - for getting location based on public IP address
- node-wifiscanner - for getting data about wifi APs in the surrounding
Inspired by
- NightSwitch - VS Code extension for switching between light and dark theme on sunrise and sunset
Contributing
Please read CONTRIBUTING.md and CODE_OF_CONCUCT.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Kris Witalewski - Initial work - @witalewski
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details