xgamma
TLDR
Display current gamma values
SYNOPSIS
xgamma [options]
DESCRIPTION
xgamma queries and sets gamma correction values for X11 displays. Gamma affects mid-tone brightness; values below 1.0 increase contrast while values above 1.0 decrease it.
The tool adjusts the video lookup table (LUT) through the X server. Default gamma is 1.0. Separate control of red, green, and blue channels allows color temperature adjustment.
Settings are temporary and reset on X server restart. For persistence, add xgamma commands to ~/.xinitrc or ~/.xprofile, or configure in xorg.conf.
PARAMETERS
-gamma value
Set gamma for all color channels.-rgamma value
Set red channel gamma.-ggamma value
Set green channel gamma.-bgamma value
Set blue channel gamma.-display name
X display to use.-screen num
Screen number to adjust.-quiet
Suppress normal output.
CAVEATS
X11 only; no effect on Wayland. Settings don't persist across reboots without scripting. May conflict with color management tools like Redshift. Hardware support varies.
HISTORY
xgamma is part of the X.Org utility collection, providing simple gamma correction since early X11 implementations. While largely superseded by xrandr for display configuration, xgamma remains useful for quick gamma adjustments.
SEE ALSO
xrandr(1), redshift(1), xcalib(1), xbrightness(1)
