#!/bin/bash # Shortcut Installation Script # # Copyright (C) 2008 Kyle Weller # # This script is free to use, distrubute and modify as long as you provide original author credit. # This script has NO WARRANTY written or implied. Use at your own risk. zenity --question --text="This will setup alt-ctrl-delete to execute gnome-system-monitor, set alt-ctrl-end to execute gnome-terminal, and set Ctrl-Alt-P to load the LogOff Screen" --title="Set Up Shortcuts?" --window-icon="$icon_path" cont=$? if [ $cont -eq 0 ] then gconftool-2 -t str --set /apps/gnome_settings_daemon/keybindings/power "P" a=$? gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "Delete" b=$? gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor" c=$? gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_10 "End" d=$? gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_10 "gnome-terminal" e=$? error=$(( $a + $b + $c + $d + $e)) if [ $error -eq 0 ] then zenity --info --text="Successfully installed Shortcuts, thanks for visiting ubuntu-unleashed.com!" --window-icon="$icon_path" else zenity --error --text="Errors installing! May or may not work." --window-icon="$icon_path" fi fi