PDA

View Full Version : [SOLVED] "Swap left alt and left win" keyboard layout works intermittently



Luke.Hoersten
July 10th, 2011, 08:08 PM
When I swap my left alt with my left win key using the gnome keyboard layout options, the swap only works intermittently. I have an aluminum Apple keyboard with no numpad. No matter what layout options I choose, I can't seem to get it working.

I also have the same setup on my laptop and work desktop and it works without issue. I've ensured my .Xmodmap doesn't exist.

When I say "works intermittently" I mean when I'm trying to use "alt+b, alt+f" navigation in emacs or bash, it doesn't work but if I click around a bit then try again, it works. Also, I use alt+arrows to switch workspaces and that always works.

Any help would be greatly appreciated.

Luke.Hoersten
July 14th, 2011, 02:48 AM
bump

DoubleClicker
July 14th, 2011, 03:16 AM
The problem isn't that it works intermittently, it probably is working correctly. The problem is that bash and emacs don't use the keyboard options, which you set in the keyboard preferences. You probably would get better help, posting a thread called. " How do I swap alt and left_win in bash and emacs", in the Main support forum

Luke.Hoersten
July 14th, 2011, 03:17 AM
I'm not sure that's the problem. I have 3 Ubuntu computers with the same keyboard setup/layout and it works fine on the other 2.

DoubleClicker
July 14th, 2011, 03:31 AM
Have you tried creating another user account? That will help determine if the problem is a system problem or some problem in your home directory.

Luke.Hoersten
July 14th, 2011, 03:37 AM
Great idea! When I logged into the guest account, the same keyboard layout worked exactly as expected (alt and win swapped just fine). That means it must be something with my user account. Any ideas?

DoubleClicker
July 14th, 2011, 03:56 AM
rename .gconf to gconf.bak
log out and log in and see if it works (you should have a default ubuntu desktop)

if that works you can either redo your preferences, or try to find the corruption in the gconf.bak files.

if that doesn't work try the same thing with .gnome2

Luke.Hoersten
July 14th, 2011, 03:58 AM
Removing ~/.gconf worked. Thanks a lot!