#!/bin/sh

set -e

case "$1" in
    ('configure')
        for user in /home/*; do
            if [ -d "${user}/.gconf" ]; then
                user="$(basename ${user})"
                su - "${user}" -c "gconftool --type string --set /apps/metacity/global_keybindings/run_command_1 XF86Launch1"
                su - "${user}" -c "gconftool --type string --set /apps/metacity/keybinding_commands/command_1 /usr/share/foshan/alps-touchpad-toggle.sh"
            fi
        done
        ;;
esac

#DEBHELPER#

exit 0
