Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disable Caps Lock?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lamaistres
Apprentice
Apprentice


Joined: 17 Dec 2002
Posts: 268
Location: Seattle

PostPosted: Sun Jun 06, 2004 7:01 am    Post subject: Disable Caps Lock? Reply with quote

Is there a way to disable "caps lock" on the keyboard?
Back to top
View user's profile Send private message
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Sun Jun 06, 2004 8:17 am    Post subject: Reply with quote

You could try removing the key from the keyboard or possibly remapping the key to something else. I'm not sure if you can remap the caps lock key though.
Back to top
View user's profile Send private message
Flammie
Retired Dev
Retired Dev


Joined: 02 Jun 2003
Posts: 633
Location: Dublin, Ireland

PostPosted: Sun Jun 06, 2004 9:11 am    Post subject: Reply with quote

I think xmodmap manpage had even example on caps lock disabling, that will assumably require X though.
Back to top
View user's profile Send private message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Sun Jun 06, 2004 5:15 pm    Post subject: Reply with quote

What about turning it into a third Control key? Add in the keyboard section of XF86Config || xorg.conf:
Code:
    Option "XkbOptions" "ctrl:nocaps"


For the console, you'll have to grab the keymap file you're using and edit the references to "clock" to something else, or write your own include file to override it and add it in EXTENDED_KEYMAPS in /etc/rc.conf. The closest premade thing is the "ctrl" extended keymap, which swaps the left ctrl with caps lock and turns the right ctrl into compose.
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
lamaistres
Apprentice
Apprentice


Joined: 17 Dec 2002
Posts: 268
Location: Seattle

PostPosted: Tue Jun 08, 2004 2:35 am    Post subject: Reply with quote

xmodmap helped me create a custom keymap (really easy) and now the caps lock key is disabled in X by adding the custom keymap to .xinitrc. I haven't finished with my keymap upgrade for the console or the kernel. I'm sort of afraid what may happen, so I'm setting up a test box to compile and run my custom keymap into the kernel.

I want to thank you all for pointing me in the right direction that lead me to custom keymapping (AKA; disable that darn Caps Lock).
Back to top
View user's profile Send private message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Tue Jun 08, 2004 3:31 pm    Post subject: Reply with quote

Keymaps can be compiled into the kernel? I'll have to check that out--then I wouldn't have to remember that the keyboard is still Qwerty if something major fails during startup and I'm asked for the root password.
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum