TOOL » LINUX » X_SERVER

Xrandr

Usage

Run the program without options to see the list of available outputs.

shell
xrandr OPTIONS
OptionDescription
--outputSelects an output to reconfigure.
--autoEnable output using their first preferred mode.
--left-ofPosition the output to the left of another output.
--right-ofPosition the output to the right of another output.
--abovePosition the output above of another output.
--belowPosition the output bellow of another output.
--same-asSet both outputs to show the same content.
--brightnessMultiply the gamma values to specified floating value.
--offDisables the output.
--primarySet the output as primary.

Examples

Extend screens:

shell
xrandr --output HDMI-1 --auto --right-of eDP-1

Only one monitor:

shell
xrandr --output eDP-1 --off --output HDMI-1 --auto --primary
xrandr --output eDP-1 --auto --primary --output HDMI-1 --off

Disable HDMI:

shell
xrandr --output HDMI-1 --off