This is a modest Bash script that sets up a projector with a Laptop. It assumes that the preferred resolution for the LCD is 1366x768. If you want a different resolution as the default then edit the script and change it to whichever resolution you want.
Clone the repo or just download the snapshot tarball and unpackit in a
directory you have set either the
PATH to or define an
Be mindful that the script turns off the screensaver and the power saving options. You should re-enable them after the presentation with:
xset +dpms xset s on
You can also define a handy alias for it.
echo "alias projector-off='xset +dmps; xset s on'" >> ~/.bash_aliases
Then source the file
source ~/.bash_aliases. Now issue
projector-off to re-enable the power sabing options and screensaver.