Using the GUI to swap Caps Lock and Control in GNOME 2 caused the file ~/.gconf/desktop/gnome/peripherals/keyboard/kbd/%gconf.xml
to be created with the following contents:
<?xml version="1.0"?> <gconf> <entry name="options" mtime="1329506552" type="list" ltype="string"> <li type="string"> <stringvalue>ctrl ctrl:swapcaps</stringvalue> </li> </entry> </gconf>
This gives enough rope to discover how to do or undo it at the command line:
gconftool-2 --type=list --list-type=string --set /desktop/gnome/peripherals/keyboard/kbd/options "[ctrl"$'\t'"ctrl:swapcaps]"
gconftool-2 -u /desktop/gnome/peripherals/keyboard/kbd/options
Note that the $'\t'
is the weird bash shell backslash escape sequence for a tab.
No comments :
Post a Comment