[gnome] Changing Keyboard Layout Options via gconftool-2

view full story

http://ubuntuforums.org – Since my laptop is often (dis)connected from the dock to which an Apple Keyboard is attached, I am looking for a convenient way to trigger some changes in keyboard layout through from the command line / script. The effect I want to achieve is the same as going to System Settings -> Keyboard Layout -> Options ... and tick the "Left Alt is swapped with Left Win" under "Alt/Win key behavior". After performing the above GUI operation, I can see that the command Code: gconftool-2 --get /desktop/gnome/peripherals/keyboard/kbd/options Produces the following output: (Hardware)