Skip to content

Instantly share code, notes, and snippets.

@kolaente
Created March 11, 2020 21:25
Show Gist options
  • Save kolaente/25334ce122c1c661f4a7dcdbb198c95c to your computer and use it in GitHub Desktop.
Save kolaente/25334ce122c1c661f4a7dcdbb198c95c to your computer and use it in GitHub Desktop.
Multi-Monitor Setup with xrandr

Multi-Monitor Setup with xrandr

Find Available Screens

xrandr

Enable output (mirrored) for one screen

xrandr --output HDMI-2

With optional resolution setting:

xrandr --output HDMI-2 --mode 1920x1080

Chainging to set settings for multiple screens

xrandr --output eDP-1 --mode 1920x1080  --output HDMI-2 --mode 1920x1080 

Set a monitor to extend the other screen

xrandr --output HDMI-2 --mode 1920x1080 --pos 1920x0

Setting for both screens:

xrandr --output eDP-1 --mode 1920x1080 --primary  --output HDMI-2 --mode 1920x1080 --pos 1920x0

Disable a monitor

xrandr --output HDMI-2 --off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment