#!/bin/bash #Just create a magic little script called setres.sh with the following contents and call it thusly: ./setres.sh 2560 1440 MODELINE=`cvt $1 $2 | tail -n 1 | sed "s/Modeline//" | sed 's/"//g'` MODENAME=`cvt $1 $2 | tail -n 1 | cut -d'"' -f 2` `xrandr --newmode $MODELINE` `xrandr --addmode Virtual-1 $MODENAME` #`xrandr --addmode None-1 $MODENAME` `xrandr --output Virtual-1 --mode $MODENAME` #`xrandr --output None-1 --mode $MODENAME`