Created
April 25, 2015 14:05
-
-
Save jonls/02ff1b9874c7f5e4203b to your computer and use it in GitHub Desktop.
OS X dark mode hook for Redshift. Set DARK_MODE to the path to https://github.com/sindresorhus/dark-mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DARK_MODE=/path/to/dark-mode | |
case $1 in | |
period-changed) | |
case $3 in | |
daytime) | |
$DARK_MODE --mode Light | |
;; | |
night) | |
$DARK_MODE --mode Dark | |
;; | |
esac | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment