Created
July 6, 2019 14:45
-
-
Save ajoydas/7d31f42a1c5f5c6e97d5779c060255b7 to your computer and use it in GitHub Desktop.
Fix Resolution for VGA Switch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xdg-open | |
# save in /home/student/.config/autostart | |
[Desktop Entry] | |
Name=ResFix | |
Comment=Fix my resolution at 1368x768 | |
NoDisplay=False | |
Exec=/home/student/.config/autostart/ResFix.sh | |
Terminal=true | |
Type=Application | |
Categories=Utility; | |
StartupNotify=false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# crt 1366 768 60 | |
xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync | |
xrandr --addmode VGA-1 1368x768_60.00 | |
xrandr --output VGA-1 --mode 1368x768_60.00 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment