Skip to content

Instantly share code, notes, and snippets.

@josectheone
Created January 3, 2020 12:41
Show Gist options
  • Save josectheone/b191414afe2e0bbd19ced22d7e2c316a to your computer and use it in GitHub Desktop.
Save josectheone/b191414afe2e0bbd19ced22d7e2c316a to your computer and use it in GitHub Desktop.
Custom resolutions in linux
#!/bin/sh
# shows aoutput device
# xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"
# to output desired resolutuion parameteres
# cvt 1920 1080 60
# set desired resolution parameters
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
# add resolution to system settings
xrandr --addmode eDP-1-1 1920x1080_60.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment