ctemp

Set color temperature
git clone git://git.akobets.xyz/ctemp
Log | Files | Refs | README | LICENSE

commit c7eb2290f114f40b429962d97408ad40aabb905b
parent bbef42c566962c37c840718dac0a6dd0207223f8
Author: Artem Kobets <artem@akobets.xyz>
Date:   Thu,  5 Mar 2020 12:26:13 +0200

add README

Diffstat:
AREADME | 32++++++++++++++++++++++++++++++++
Mconfig.mk | 10+++++-----
Mctemp.1 | 6++++--
3 files changed, 41 insertions(+), 7 deletions(-)

diff --git a/README b/README @@ -0,0 +1,32 @@ +ctemp - set color temperature +----------------------------- +ctemp is a tiny wrapper program which sets color temperature +for several graphical backends. + + +Requirements +------------ +Depending on build options, you may need the following to build ctemp: +* libdrm - for DRM support. +* OS X - for Quartz (OS X) support. +* Xlib - for X11 support. + + +Installation +------------ +Edit config.mk to match your local setup (ctemp is installed into +the /usr/local namespace by default). + +Afterwards enter the following command to build and install ctemp (if +necessary as root): + + make clean install + + +Credits +------- +Inspired by sct - https://flak.tedunangst.com/post/sct-set-color-temperature +and Redshift - https://github.com/jonls/redshift + + +See the man page for additional details. diff --git a/config.mk b/config.mk @@ -9,13 +9,13 @@ MANPREFIX = $(PREFIX)/share/man # DRM support ENABLE_DRM = ON -# Quartz (macOS/OS X) support +# Quartz (OS X) support ENABLE_QUARTZ = OFF # X11 support ENABLE_X = ON -X11INC = /usr/X11R6/include -X11LIB = /usr/X11R6/lib +X11_INC = /usr/X11R6/include +X11_LIB = /usr/X11R6/lib DRM_INCS_ON = -I/usr/include/libdrm DRM_LIBS_ON = -ldrm @@ -23,8 +23,8 @@ DRM_FLAGS_ON = -DDRM_SUPPORT QUARTZ_INCS_ON = -framework CoreGraphics QUARTZ_LIBS_ON = QUARTZ_FLAGS_ON = -DQUARTZ_SUPPORT -D_DARWIN_C_SOURCE -X_INCS_ON = -I$(X11INC) -X_LIBS_ON = -L$(X11LIB) -lX11 -lXrandr +X_INCS_ON = -I$(X11_INC) +X_LIBS_ON = -L$(X11_LIB) -lX11 -lXrandr X_FLAGS_ON = -DX_SUPPORT DRM_INCS = $(DRM_INCS_$(ENABLE_DRM)) diff --git a/ctemp.1 b/ctemp.1 @@ -28,7 +28,7 @@ define interface to use. Use this in console mode (no X11). .PP .B quartz -- use Quartz API (macOS/OS X). +- use Quartz API (OS X). .br Program will not exit after applying changes if this interface is used. .br @@ -37,7 +37,9 @@ This is due to OS X limitations of discarding color temperature changes on progr .B x - use X11 API. .PP -If program was compiled with only one interface, +If +.B ctemp +was compiled with only one interface, it will be used by default. Use .B -h