View Single Post
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#34
Here's my (lamish) script. Good if you need Spanish ó é ñ, etc and unix

Code:
#!/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
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

-Jeff
http://wiki.maemo.org/User:Jebba
 

The Following 4 Users Say Thank You to jebba For This Useful Post: