Skip to content

Instantly share code, notes, and snippets.

@alanxoc3
Created January 17, 2020 21:36
Show Gist options
  • Save alanxoc3/f72bfd5805ea42eb9b41cc61484f0bae to your computer and use it in GitHub Desktop.
Save alanxoc3/f72bfd5805ea42eb9b41cc61484f0bae to your computer and use it in GitHub Desktop.
Combines two monitors into one.
#!/bin/bash
# Make your desktop environment treat two monitors as only one.
xrandr --output DP-1 --rotate left
xrandr --output DP-2 --rotate right
xrandr --output DP-2 --right-of DP-1 --auto
xrandr --setmonitor combined auto DP-1,DP-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment