NVidia video card with NVidia drivers. Debian 8. Multiple monitors
I currently have 2 screens connected to my computer. Usually (while working) I like to use both. Sometimes (while gaming) I only want one to be active.
Actually there is a third usecase (watching movie on a projector, while screen 1 and 2 are off) but let's ignore that for now.
What I am looking for is a simple way (cli command, script that can be tied to e.g a hotkey, etc) to change the X server configuration. I can use nvidia-settings to change the configuration, but that is a clicky interface and I am looking for the one-button solution.
Does not matter if the configuration sticks across reboots (preferred would be only temporary change)