With a little side of applesauce...

Wednesday, March 5, 2008

Gutsy - Dual Monitors - On and Off

Following the following post:
http://ubuntuforums.org/showpost.php?p=1141790&postcount=7

I created an on/off scripts for using dual monitors, and tied them to Control-F7 and Control-F8. Here are the scripts:

speeves@mylaptop:~$ cat bin/dual_monitor_off.sh
#!/bin/sh

xrandr --output VGA --off
speeves@mylaptop:~$ cat bin/dual_monitor_work.sh
#!/bin/sh

xrandr --output LVDS --auto --output VGA --auto --right-of LVDS
gconftool --type int --set /apps/panel/toplevels/top_panel_screen0/monitor 1

No comments: