Skip to content

Instantly share code, notes, and snippets.

@c4mx
Created June 14, 2021 13:07
Show Gist options
  • Save c4mx/ad82d0d764d28bb42a1a1065841216c7 to your computer and use it in GitHub Desktop.
Save c4mx/ad82d0d764d28bb42a1a1065841216c7 to your computer and use it in GitHub Desktop.
Set Kali resolution
# 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