Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!/usr/bin/env zsh
  2.  
  3. # vga_settings
  4.  
  5. # A shell utility that recalculates the xrandr properties
  6. # for VGA1 output and adjusts the output to 1600x1200.
  7.  
  8. # Running cvt 1366 768 gives the below Modline:
  9. # "1600x1200_60.00" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsync
  10.  
  11. # Define a newmode for xrandr for 1366 x 768
  12. xrandr --newmode "1600x1200_60.00" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsync
  13.  
  14. # Add the mode
  15. xrandr --addmode VGA1 1600x1200_60.00
  16.  
  17. # Output the new mode
  18. xrandr --output VGA1 --mode 1600x1200_60.00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement