#!/bin/sh ORIG_WM=$(gconftool-2 -g /desktop/gnome/session/required_components/windowmanager) # override windowmanager temporily for this session if [ "$ORIG_WM" != "bluetile" ]; then gconftool-2 -s /desktop/gnome/session/required_components/windowmanager bluetile --type string fi gnome-session # if we changed the default windowmanager and # it hasn't changed again since, reset it back to original if [ "$ORIG_WM" != "bluetile" ]; then CURRENT_WM=$(gconftool-2 -g /desktop/gnome/session/required_components/windowmanager) if [ "$CURRENT_WM" = "bluetile" ]; then gconftool-2 -s /desktop/gnome/session/required_components/windowmanager $ORIG_WM --type string fi fi