#!/bin/bash if [[ "x$1" == "xon" ]]; then xrandr --output VGA-0 --off xrandr --output LVDS --mode 1024x768 xrandr --output VGA-0 --same-as LVDS --mode 1024x768 gconftool-2 -t bool --set /apps/nautilus/preferences/show_desktop false gconftool-2 -t int --set /apps/panel/toplevels/top_panel_screen0/auto_hide_size 0 gconftool-2 -t int --set /apps/panel/toplevels/bottom_panel_screen0/auto_hide_size 0 gconftool-2 -t bool --set /apps/panel/toplevels/top_panel_screen0/auto_hide true gconftool-2 -t bool --set /apps/panel/toplevels/bottom_panel_screen0/auto_hide true gconftool-2 --unset /desktop/gnome/background/picture_filename nautilus -q >/dev/null 2>&1 nautilus -n >/dev/null 2>&1 & elif [[ "x$1" == "xoff" ]]; then xrandr --output VGA-0 --off xrandr --output LVDS --mode 1280x800 xrandr --output VGA-0 --left-of LVDS --mode 1024x768 #xrandr --output VGA-0 --off; xrandr --output LVDS --mode 1280x800 gconftool-2 -t bool --set /apps/nautilus/preferences/show_desktop true gconftool-2 -t int --set /apps/panel/toplevels/top_panel_screen0/auto_hide_size 6 gconftool-2 -t int --set /apps/panel/toplevels/bottom_panel_screen0/auto_hide_size 6 gconftool-2 -t bool --set /apps/panel/toplevels/top_panel_screen0/auto_hide false gconftool-2 -t bool --set /apps/panel/toplevels/bottom_panel_screen0/auto_hide false gconftool-2 -t str --set /desktop/gnome/background/picture_filename "/home/jvdillon/mydocs/projects/threadless/wallpaper.gif" nautilus -q >/dev/null 2>&1 nautilus -n >/dev/null 2>&1 & else echo "incorrect argument \"$1\", use $0 [on|off]" fi