Skip to content

Instantly share code, notes, and snippets.

@wildlyinaccurate
Created September 27, 2013 14:49
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 wildlyinaccurate/6729796 to your computer and use it in GitHub Desktop.
Save wildlyinaccurate/6729796 to your computer and use it in GitHub Desktop.
Force X to use a certain screen resolution
# Ad-hoc
xrandr --newmode 1920x1080 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VBOX0 1920x1080
xrandr --output VBOX0 --mode 1920x1080
# Or in ~/.i3/config
# exec_always xrandr --newmode 1920x1080 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
# exec_always xrandr --addmode VBOX0 1920x1080
# exec_always xrandr --output VBOX0 --mode 1920x1080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment