Skip to content

Instantly share code, notes, and snippets.

@sixtyfive
Created May 19, 2020 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sixtyfive/b9230d8e43d6f21ad5a7512667036c81 to your computer and use it in GitHub Desktop.
Save sixtyfive/b9230d8e43d6f21ad5a7512667036c81 to your computer and use it in GitHub Desktop.
Add new resolution and change to it right away
OUT=Virtual-1 X=2560 Y=1440 R=60 bash -c \
'MOD=${X}x${Y}_$R.00; xrandr --newmode $MOD $(cvt $X $Y $R | grep -v "#" | cut -d "\"" -f 3); xrandr --addmode $OUT $MOD; xrandr --output $OUT --mode $MOD'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment