Skip to content

xrandr | Cheatsheet


Display Current Monitor Settings

xrandr --current

Set Display Resolution

xrandr --output <display> --mode <resolution>

Add New Mode (Resolution)

cvt 1920 1080 60
xrandr --newmode <Modeline>
xrandr --addmode <display> <mode>

Turn off a Display

xrandr --output <display> --off

Rotate Display

xrandr --output <display> --rotate <orientation>

Reflect Display

xrandr --output <display> --reflect <axis>

Resets all the settings to their defaults.

xrandr --auto

Set Refresh Rate

xrandr --output <display> --rate <rate>

Set Primary Monitor

xrandr --output <display> --primary

Scale Display

xrandr --output <display> --scale 1.25x1.25

Panning

xrandr --output <display> --panning 1920x1080

Screen Positioning

xrandr --output <display1> --left-of <display2>
xrandr --output <display1> --right-of <display2>
xrandr --output <display1> --above <display2>
xrandr --output <display1> --below <display2>