Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukakerr/sublime-autotheme
A small script to change your sublime text theme for day and night. Made for MacOS.
https://github.com/lukakerr/sublime-autotheme
macos sublime-text sublime-text-3 theme
Last synced: 9 days ago
JSON representation
A small script to change your sublime text theme for day and night. Made for MacOS.
- Host: GitHub
- URL: https://github.com/lukakerr/sublime-autotheme
- Owner: lukakerr
- Created: 2017-11-11T04:15:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-11T08:31:03.000Z (about 7 years ago)
- Last Synced: 2024-10-30T02:38:29.702Z (about 2 months ago)
- Topics: macos, sublime-text, sublime-text-3, theme
- Language: Shell
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sublime-autotheme
A small script to change your sublime text theme for day and night. Made for MacOS.
If the time is between 7PM-7AM, a dark theme will be applied, otherwise a light theme will be applied.
You can change these times inside `autotheme.sh`:
- Go to this line: `if [[ $time -gt 1900 || $time -lt 700 ]]; then `
- `1900` is 7PM in 24 hour time and `700` is 7AM in 24 hour time
- Change these to your desired times at which a dark theme will be applied### How to use
1. Inside `autotheme.sh` there are 4 variables you need to change. See the comments in `autotheme.sh` to do this.
2. Once you have made the changes simply run `./install.sh`. This will ask for your password so it can copy `autotheme.sh` into `/usr/local/bin`.A launch agent in `~/Library/LaunchAgents/` will run `autotheme.sh` on the hour.
### Demonstration