sct

set color temperature
git clone anongit@rnpnr.xyz:sct.git
Log | Files | Refs | Feed | README | LICENSE

Commit: e42ed54945148f199be29642af7782b14846792a
Parent: b1666dc992dc465e1e6b939c222b8dc03b66b6e2
Author: Fabian Foerg
Date:   Tue, 31 May 2022 21:08:46 -0400

Change to Unlicense (#27)

Addresses https://github.com/faf0/sct/issues/11 .
Diffstat:
MLICENSE | 54++++++++++++++++++++++++------------------------------
MREADME.md | 14+++++++-------
2 files changed, 31 insertions(+), 37 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -1,30 +1,24 @@ -Public Domain Mark 1.0 - No Copyright - - This work has been identified as being free of known restrictions - under copyright law, including all related and neighboring rights. - - You can copy, modify, distribute and perform the work, even for - commercial purposes, all without asking permission. See Other - Information below. - - Other Information - - The work may not be free of known copyright restrictions in all - jurisdictions. - - Persons may have other rights in or related to the work, such as - patent or trademark rights, and others may have rights in how the - work is used, such as publicity or privacy rights. - - In some jurisdictions moral rights of the author may persist beyond - the term of copyright. These rights may include the right to be - identified as the author and the right to object to derogatory - treatments. - - Unless expressly stated otherwise, the person who identified the work - makes no warranties about the work, and disclaims liability for all - uses of the work, to the fullest extent permitted by applicable law. - - When using or citing the work, you should not imply endorsement by - the author or the person who identified the work. +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to <http://unlicense.org/> diff --git a/README.md b/README.md @@ -3,7 +3,7 @@ Xsct (X11 set color temperature) is a UNIX tool which allows you to set the color temperature of your screen. It is simpler than Redshift and f.lux. -Original code was published by Ted Unangst: +Original code was published by Ted Unangst to the public domain: http://www.tedunangst.com/flak/post/sct-set-color-temperature Minor modifications were made in order to get sct to: @@ -18,27 +18,27 @@ Minor modifications were made in order to get sct to: # Installation Compile the code using the following command: - -~~~ +~~~sh gcc -Wall -Wextra -Werror -pedantic -std=c99 -O2 -I /usr/X11R6/include xsct.c -o xsct -L /usr/X11R6/lib -lX11 -lXrandr -lm -s ~~~ Execute xsct using the following command: - -~~~ +~~~sh ./xsct 3700 ~~~ The first parameter (`3700` above) denotes the color temperature. + If `xsct` is called with parameter 0, the color temperature is set to `6500`. + If `xsct` is called without parameters, the current display temperature is estimated. + If `xsct` is called with a temperature parameter as well as a screen index followed by a CRTC index, the color temperature of the specified screen and CRTC combination is changed only. Test xsct using the following command: - -~~~ +~~~sh ./xsct 3700 && ./xsct ~~~