Switch between laptop monitor configurations with a keybinding

by jenny on 22 May 2012 - 07:10pm in

Wow. Wish I'd known about this before.

sudo add-apt-repository ppa:disper-dev/ppa
sudo apt-get update
sudo apt-get install disper

Voila. Now all you need are your new commands.

disper -s   # activates just the laptop monitor
disper -S   # activates just the attached monitor

These, of course, can be bound to any key combination you want in System -> Preferences -> CompizConfig Settings Manager -> Commands.

If you want to get fancy and have exactly ONE key binding which toggles back and forth, bind to this single command:

disper --cycle-stages='-s : -S' --cycle

Love.It.