https://github.com/arstgit/xwhite
Adjust the color balance.
https://github.com/arstgit/xwhite
Last synced: 2 months ago
JSON representation
Adjust the color balance.
- Host: GitHub
- URL: https://github.com/arstgit/xwhite
- Owner: arstgit
- License: gpl-2.0
- Created: 2022-06-02T11:48:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T05:15:40.000Z (over 3 years ago)
- Last Synced: 2026-04-03T10:47:47.421Z (3 months ago)
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xwhite
It is a command line tool for adjusting the colour balance of screen. It is based on xrandr's gamma correction and brightness adjustment. As such, it can only be used for X displays and not Wayland displays. It is typically used for tuning the color balance and color temperature.
It has a similar function as `redshift -P -g R:G:B -O temperature`, but `xwhite` is more flexible in that it does not keep the white color fixed, suitable for setting the white color to an arbitrary balanced color.
## Usage
```
// xwhite --output --rgb ::
// R G B {0-1}, normalized, mapped to gamut, logrithmic
// (sRGB primaries and gamma correction)
xwhite --output LVDS-1 --rgb 1.00000000:0.71976951:0.42860152
// 3000K color temperture.
```
Reference for white color normalized RGB value regarding to color temperture: https://github.com/jonls/redshift/blob/master/README-colorramp.
## License
GPL-2.0-only license no later versions.