#!/bin/bash

case $1 in
	--set)
		gconftool-2 --set --type string \
			/apps/metacity/global_keybindings/panel_run_dialog \
				"<Ctrl><Alt>F2"
		
		gconftool-2 --set --type string \
			/apps/metacity/global_keybindings/run_command_12 \
				"<Alt>F2"
		
		gconftool-2 --set --type string \
			/apps/metacity/keybinding_commands/command_12 \
				"gnome-run-dialog"
	;;
	
	--unset)
		gconftool-2 --set --type string \
			/apps/metacity/global_keybindings/panel_run_dialog \
				"<Alt>F2"
		
		gconftool-2 --set --type string \
			/apps/metacity/global_keybindings/run_command_12 \
				""
		
		gconftool-2 --set --type string \
			/apps/metacity/keybinding_commands/command_12 \
				""
	;;

	*)
		cd /usr/share/gnome-run-dialog/
		python ./gnome-run-dialog.py
	;;
esac
