Last active
October 26, 2019 06:31
-
-
Save deafmute1/b4ad7718e091027427ebbad20a9b092c to your computer and use it in GitHub Desktop.
forces modelines for xrandr that do not cause visual glitching (for radish)
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/bash | |
#forces modelines for xrandr that do not cause visual glitching (for radish) | |
var1=$RANDOM | |
var2=$RANDOM | |
#DVI-D-0 LG | |
xrandr --newmode "59.93-$var1" 138.50 1920 1968 2000 2080 1080 1083 1088 1111 +hsync +vsync | |
xrandr --addmode DVI-D-0 "59.93-$var1" | |
xrandr --output DVI-D-0 --mode "59.93-$var1" | |
#DisplayPort-2 AOC | |
xrandr --newmode "144.0-$var2" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync | |
xrandr --addmode DisplayPort-2 "144.0-$var2" | |
xrandr --output DisplayPort-2 --mode "144.0-$var2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment