Created
March 10, 2018 23:14
-
-
Save tberghuis/cfed39468df970aab5d3ca6966c042f9 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# 1280 * 800 | |
# should i research the effect of the refresh rate.... | |
# gtf 800 1280 60 | |
# 800x1280 @ 60.00 Hz (GTF) hsync: 79.50 kHz; pclk: 86.50 MHz | |
Modeline "800x1280_60.00" 86.50 800 856 944 1088 1280 1281 1284 1325 -HSync +Vsync | |
xrandr --newmode "800x1280_60.00" 86.50 800 856 944 1088 1280 1281 1284 1325 -HSync +Vsync | |
xrandr --addmode VIRTUAL1 800x1280_60.00 | |
# rewrite so display is right-of | |
xrandr --output VIRTUAL1 --mode 800x1280_60.00 --left-of LVDS1 | |
x11vnc -clip 800x1280+0+0 | |
# turn off | |
xrandr --output VIRTUAL1 --off | |
# fix lag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment