Skip to content

Instantly share code, notes, and snippets.

@allanrbo
Created October 15, 2018 07:36
Show Gist options
  • Save allanrbo/53ea59077fb2aa33d0b74d64e1d96cd3 to your computer and use it in GitHub Desktop.
Save allanrbo/53ea59077fb2aa33d0b74d64e1d96cd3 to your computer and use it in GitHub Desktop.
# with tigervnc client, none of the below is needed!
# following line was obtained with this command: cvt 3840 1200
xrandr --newmode "3840x1200" 386.75 3840 4104 4512 5184 1200 1203 1213 1245 -hsync +vsync
xrandr --addmode VNC-0 "3840x1200"
# To get into multi monitor mode
xrandr -s 3840x1200
xrandr --setmonitor VNC-0~1 1920/518x1200/324+0+0 VNC-0
xrandr --setmonitor VNC-0~2 1920/518x1200/324+1920+0 none
xrandr --listmonitors
# to refit wallpaper
killall nautilus
nautilus &
# To get back to single monitor mode
xrandr --delmonitor VNC-0~1
xrandr --delmonitor VNC-0~2
xrandr --listmonitors
xrandr -s 1920x1200
# to change resolution
xrandr -s 1024x768
xrandr -s 1400x1050
xrandr -s 1920x1200
xrandr -s 3840x1200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment