Created
June 14, 2021 13:07
-
-
Save c4mx/ad82d0d764d28bb42a1a1065841216c7 to your computer and use it in GitHub Desktop.
Set Kali resolution
This file contains hidden or 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
# Set kali resolution | |
set_resolution () { | |
home_rez_name='1920x975-60' | |
home_rez='"1920x975-60" 155.25 1920 2040 2240 2560 975 978 988 1012 -hsync +vsync' | |
xrandr -s $home_rez_name || xrandr --newmode "1920x975-60" 155.25 1920 2040 2240 2560 975 978 988 1012 -hsync +vsync && \ | |
xrandr --addmode Virtual1 $home_rez_name && \ | |
xrandr -s $home_rez_name | |
echo "[+] The resolution switched to $home_rez_name" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment