#!/bin/sh

KEYS=`gconftool-2 --get \
	/apps/osso/xterm/keys`

KEY_LABELS=`gconftool-2 --get \
	/apps/osso/xterm/key_labels`

echo "Current settings:"
echo "KEYS $KEYS"
echo "KEY_LABELS $KEY_LABELS"

# Default
NEW_KEYS="[Tab,Escape,Page_Up,Page_Down]"
NEW_KEY_LABELS="[Tab,Esc,PgUp,PgDn]"

# Custom 
# see here for a possible list:
# /usr/share/X11/xkb/symbols/nokia_vndr/rx-51
# What are the names for ñ
# asciicircum = ^
# Tab = Tab
# Esc = Esc
# Bar = |
# greater = >
# grave = `
# dead_grave = ` (for accent, twice for symbol)
# ??? = [
# ??? = ]
# ??? = {
# ??? = }
# dead_ogonek = ǫ 
# ntilde = ñ

NEW_KEYS="[Tab,Escape,bar,dead_tilde,greater,dead_acute,grave]"
NEW_KEY_LABELS="[Tab,Esc,|,~,>,´,\`]"

echo "New settings:"
echo "KEYS $NEW_KEYS"
echo "KEY_LABELS $NEW_KEY_LABELS"

gconftool-2 --set -t list  --list-type string \
	/apps/osso/xterm/keys \
	$NEW_KEYS

gconftool-2 --set -t list  --list-type string \
	/apps/osso/xterm/key_labels \
	$NEW_KEY_LABELS

