| 
1 |  | -# ctempd  | 
 | 1 | +# Screen Color Temperature Changing Daemon  | 
2 | 2 | 
 
  | 
3 |  | -Small daemon to set screen temperature.  ctempd can either set the screen's  | 
4 |  | -temperature once with the -s option or run in the background and set the  | 
 | 3 | +Small daemon to set screen temperature.  ctempd can either set the screen's temperature once with the -s option or run in the background and set the  | 
5 | 4 | screen's temperature automatically based on the time of day.  | 
 | 5 | + | 
 | 6 | +## Features  | 
 | 7 | + | 
 | 8 | +* Set screen temperature continuously in the background  | 
 | 9 | +* Set screen temperature once  | 
 | 10 | + | 
 | 11 | +## Installation  | 
 | 12 | + | 
 | 13 | +ctempd is written in C and known to work on the operating systems listed in the table below.  To compile it you need the following things:  | 
 | 14 | + | 
 | 15 | +* A recent C compiler (tested with both clang >= 11 and GCC >= 8)  | 
 | 16 | +* make (tested with both BSD and GNU make)  | 
 | 17 | +* [libXrandr](https://www.x.org/wiki/libraries/libxrandr/)  | 
 | 18 | +* [libX11 core development libraries](https://www.x.org/releases/current/doc/libX11/libX11/libX11.html)  | 
 | 19 | + | 
 | 20 | +### Dependencies  | 
 | 21 | + | 
 | 22 | +Install the dependencies as follows:  | 
 | 23 | + | 
 | 24 | +| Operating System | Commands and Notes |  | 
 | 25 | +| --- | --- |  | 
 | 26 | +| OpenBSD | All installed by default |  | 
 | 27 | +| Void Linux| `xbps-install gcc make libXrandr-devel libX11-devel` |  | 
 | 28 | + | 
 | 29 | +If your operating system does not have `pkg-config` installed by default, you have to install it as well.  | 
 | 30 | + | 
 | 31 | +### Compilation and Installation  | 
 | 32 | + | 
 | 33 | +By default, the `Makefile` looks for external includes and libraries in `/usr/local/{include,lib}`, `/usr/X11R6/{include,lib}`.  If your distribution uses special path, you have to modify the Makefile accordingly.  | 
 | 34 | + | 
 | 35 | +Compile and install with the following commands:  | 
 | 36 | + | 
 | 37 | +```  | 
 | 38 | +$ make  | 
 | 39 | +# make install  | 
 | 40 | +```  | 
 | 41 | + | 
 | 42 | +## Usage  | 
 | 43 | + | 
 | 44 | +Let ctempd automatically adapt the screen temperature based on the time of day.  The highest temperature at noon is 5400K:  | 
 | 45 | + | 
 | 46 | +```  | 
 | 47 | +$ ctempd 5400  | 
 | 48 | +```  | 
 | 49 | + | 
 | 50 | +ctempd logs via syslog, you can check the current temperature in your system's log messages.  | 
 | 51 | + | 
 | 52 | +Set the screen temperature to 3200K once.  | 
 | 53 | + | 
 | 54 | +```  | 
 | 55 | +$ ctempd -s 3200  | 
 | 56 | +```  | 
 | 57 | + | 
 | 58 | +## License  | 
 | 59 | + | 
 | 60 | +isscrolls was written by Matthias Schmidt and is public domain.  The algorithm to set the screen temperature was written by Ted Unangst and is also public domain.  | 
0 commit comments