Skip to content

Instantly share code, notes, and snippets.

@ajoydas
Created July 6, 2019 14:45
Show Gist options
  • Save ajoydas/7d31f42a1c5f5c6e97d5779c060255b7 to your computer and use it in GitHub Desktop.
Save ajoydas/7d31f42a1c5f5c6e97d5779c060255b7 to your computer and use it in GitHub Desktop.
Fix Resolution for VGA Switch
#!/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
#!/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