Posts: 5
ragnar_danneskjold
Joined: 13 Apr 2014
#1
Hey All,

New here.

I tried poking around to disable caps lock- went into the xmodmaprc file and uncommented"clear lock" [or something like that]- Restarted X and restarted Icewm....and the stoopit[sic] caps lock is still working. HELP! This is only my 2nd time booting-up Antix. First thing I do in any distro, is disable caps lock....
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#2
IIRC, you need to actually run xmodmap and point it to the file you edited for it to work.

A permanent solution is to edit (as root) /etc/default/keyboard file and change the XKBOPTIONS line to:

Code: Select all

XKBOPTIONS="ctrl:nocaps"
This will turn Caps-Lock into another Ctrl key. All the possible options are in the file /usr/share/X11/xkb/rules/base.lst. This change is permanent but you have to restart the X-server for it to take effect (log out of X and log in again). If you want the change now or just for testing then run:

Code: Select all

 setxkbmap -option ctrl:nocaps
from inside a terminal window.
Posts: 5
ragnar_danneskjold
Joined: 13 Apr 2014
#3
Thank you!!

I've done it before in different distros...but they seem to always put the file one needs to edit in a different place; and call it something different! ! ( I think in my last one, it was /openbox/config/autostart.sh)

I restarted X and Icewm....but it didn't work, for some reason, until I rebooted.

Ah! Now I'm happy!