View Single Post
Old 05-20-10, 01:40 PM   #12
packermann
Registered User
 
Join Date: Mar 2009
Posts: 47
Default Re: Laptop Docking : script to Change number of displays

Nothing special, no need to hazzle with xrandr
Code:
#!/bin/bash
if [ $(disper -l | grep -c display) -eq "1" ]; then
        disper -s
else
        disper -e
fi
Save this to whatever you want, make it executable and bind it to a keycombination you like.
packermann is offline   Reply With Quote