LinuxCommandLibrary

xgamma

Adjust X11 display gamma correction

TLDR

Display current gamma values

$ xgamma
copy
Set gamma for all channels
$ xgamma -gamma [1.2]
copy
Set individual channel gamma
$ xgamma -rgamma [1.1] -ggamma [1.0] -bgamma [0.9]
copy
Set gamma on specific display
$ xgamma -display [:0] -gamma [1.2]
copy
Set gamma on specific screen
$ xgamma -screen [0] -gamma [1.1]
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community