Skip to content

Instantly share code, notes, and snippets.

@samaphp
Created May 23, 2017 22:56
Show Gist options
  • Save samaphp/2246b1e6ab95491477fdee86b14de1ab to your computer and use it in GitHub Desktop.
Save samaphp/2246b1e6ab95491477fdee86b14de1ab to your computer and use it in GitHub Desktop.
Arrange Ubuntu monitors using commandline. This script will help you to rearrange monitor screens by command line. (BE CAREFUL the dimensions should changed to suit your monitors dimensions)
#!/usr/bin/env bash
echo "[ Start Arranging ]"
echo "==================="
xrandr --output DP-1 --mode 1920x1200 --pos 2646x0 --rotate normal --output VGA-1-1 --mode 1366x768 --pos 1280x0 --rotate normal --output VGA-2-2 --mode 1280x1024 --pos 0x0 --rotate normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment