Skip to content

Instantly share code, notes, and snippets.

@SonoSooS
Last active April 17, 2016 17:34
Show Gist options
  • Save SonoSooS/62cd0323fc0256549eed to your computer and use it in GitHub Desktop.
Save SonoSooS/62cd0323fc0256549eed to your computer and use it in GitHub Desktop.
Simple resolution setter for Linux
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