Re:Setting Emacs theme based on ambient light
by auxym on Tuesday April 10, 2018 @05:41PM
(#16805752)
I've had this in my vimrc for a little while:
Using a light sensor would be cool, but I actually work from a desktop PC most of the time, so no sensor. I guess the next best thing would be something like f.lux does: query some web service for the sunset time at your current location.
[ Parent
| on HN ]
Re:Setting Emacs theme based on ambient light
by gkya on Tuesday April 10, 2018 @05:47PM
(#16805809)
I have this old and slightly buggy vim plugin [1] which uses py-ephem to determine the correct moment to switch themes every day. It's been quite a while since I've used vim and I don't maintain this, but you may want to chech it out. BTW, if there's anybody that wants to take over it, please contact me via a github issue through the repo below.
Re:Setting Emacs theme based on ambient light
by TwistedWave on Wednesday April 11, 2018 @07:01AM
(#16809820)
It is possible to purchase a small USB lux meter:
http://www.yoctopuce.com/EN/products/usb-environmental-senso...
I use one to automatically adjust the brightness of my Dell display.
Re:Setting Emacs theme based on ambient light
by tobyhinloopen on Wednesday April 11, 2018 @09:25AM
(#16810833)
what display and how do you control your display from your PC?
Re:Setting Emacs theme based on ambient light
by TwistedWave on Wednesday April 11, 2018 @12:44PM
(#16812935)
I have a Dell P4317Q, a great 43 inch display, and control it from my Mac with ddcctl: https://github.com/kfix/ddcctl