Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env zsh
- # vga_settings
- # A shell utility that recalculates the xrandr properties
- # for VGA1 output and adjusts the output to 1600x1200.
- # Running cvt 1366 768 gives the below Modline:
- # "1600x1200_60.00" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsync
- # Define a newmode for xrandr for 1366 x 768
- xrandr --newmode "1600x1200_60.00" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsync
- # Add the mode
- xrandr --addmode VGA1 1600x1200_60.00
- # Output the new mode
- xrandr --output VGA1 --mode 1600x1200_60.00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement