View Full Version : [gnome] [SOLVED] Capslock led when switched through the keyboard preferences
May 28th, 2008, 09:58 PM
I recently swapped the position of the caps lock and the escape key (I use vim and derivatives a lot) using the System->Preferences->Keyboard option in GNOME. However, pressing the caps lock key still toggles the caps lock LED, even though its behaviour is that of the esc key, and the esc key does not toggle the caps lock led.
How can I fix this so that it matches up?
May 28th, 2008, 10:35 PM
This is a known bug in Hardy Heron.
There is a work-around here:
I've not studied it in depth, but if the fix has to be re-done every time you reboot, perhaps we could make a start-up script to put in sessions that would implement the fix.
Let me know how it goes.
June 5th, 2008, 07:16 PM
Ok, it's fixed. I disabled the option in the GNOME keyboard prefs window and created the following script in /etc/SwapCapsEsc.kmap
! Swap Caps_Lock and Escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
I then added the following line to /etc/rc.local
sudo xmodmap /etc/SwapCapsEsc.kmap
Works perfectly now.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.