Created
January 3, 2020 12:41
-
-
Save josectheone/b191414afe2e0bbd19ced22d7e2c316a to your computer and use it in GitHub Desktop.
Custom resolutions in linux
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/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