Skip to content

Instantly share code, notes, and snippets.

@bcap
Created September 20, 2012 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcap/3758350 to your computer and use it in GitHub Desktop.
Save bcap/3758350 to your computer and use it in GitHub Desktop.
Adjust double monitors display, edit changing screen names and position
#!/bin/bash
# xrandr --nograb --output <primary display name> --auto --pos 0x0 --primary --preferred
# xrandr --nograb --output <secondary display name> --auto --pos <position X in relation to the primary monitor>x<position Y in relation of the primary monitor>
xrandr --nograb --output VGA1 --auto --pos 0x0 --primary --preferred
xrandr --nograb --output DP1 --auto --pos 1920x200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment