Last active
April 17, 2016 17:34
-
-
Save SonoSooS/62cd0323fc0256549eed to your computer and use it in GitHub Desktop.
Simple resolution setter for 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
LEL=`cvt $2 $3 $4 | grep "Modeline" | cut -b10- | tr -s " " | sed 's/\([0-9]*x[0-9]*\)_[^\"]*/\1/g'`;NAEM=`echo $LEL | cut -d'"' -f2`;echo $LEL | xargs xrandr --newmode;xrandr --addmode $1 $NAEM;xrandr --output $1 --mode $NAEM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment