#!/bin/bash # You can modify these to suit profile="default" panel="bottom_panel" position="0" right_stick="true" oaf_iid="OAFIID:GNOME_NetstatusApplet" applet_id="gimlet" # You shouldn't change these schemas_base=/schemas/apps/panel profile_base=/apps/panel/profiles applet_schemas=$(gconftool-2 --all-entries $schemas_base/objects | awk -F '=' '{print $1}') # Apply the schemas for schema in $applet_schemas; do gconftool-2 --apply-schema $schemas_base/objects/$schema $profile_base/$profile/applets/$applet_id/$schema done # Tweak things gconftool-2 --set $profile_base/$profile/applets/$applet_id/object_type -t string bonobo-applet gconftool-2 --set $profile_base/$profile/applets/$applet_id/bonobo_iid -t string $oaf_iid gconftool-2 --set $profile_base/$profile/applets/$applet_id/toplevel_id -t string $panel gconftool-2 --set $profile_base/$profile/applets/$applet_id/position -t int $position gconftool-2 --set $profile_base/$profile/applets/$applet_id/panel_right_stick -t bool $right_stick applet_id_list=$(gconftool-2 --get /apps/panel/profiles/default/general/applet_id_list) applet_id_list=$(echo $applet_id_list | sed -e "s|]|,$applet_id]|") # Finally, add the applet once everything has been setup gconftool-2 --set $profile_base/$profile/general/applet_id_list --type list --list-type string $applet_id_list