Skip to content

Instantly share code, notes, and snippets.

@yowcow
Last active April 7, 2021 23:35
Show Gist options
  • Save yowcow/a555a9e0741ad3a260e44827fbaeda2f to your computer and use it in GitHub Desktop.
Save yowcow/a555a9e0741ad3a260e44827fbaeda2f to your computer and use it in GitHub Desktop.
Xrandr
# list available outputs
xrandr
xrandr --query
# set HDMI-2 output as 3840x2160, to the left of eDP-1
xrandr --output HDMI-2 --mode 3840x2160 --left-of eDP-1
# set HDMI-2 output as 3840x2160, to mirror eDP-1
xrandr --output HDMI-2 --mode 3840x2160 --same-as eDP-1
# stop HDMI-2 output
xrandr --output HDMI-2 --off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment