You are not logged in.
Pages: 1
Hi, sorry to post yet another thread about key configs but I just recently installed #! and can't figure out how to swap my caps lock and ctrl buttons (i.e. swap their functions). I've read through a bunch of howto's and tried to search as thoroughly as possible but wasn't able to find anything specific.
I've tried using xmodmap (which has worked for my other key mods) and I've had a go at editing rc but to no avail.
If someone could post a short and sweet tutorial or hit me with a link that would be awesome 
Offline
OK.. so after no replies I did even more searching and found a great fix on the ubuntu forums here: http://ubuntuforums.org/showthread.php?t=736536
Needs a bit of fiddling about with xmodmap. To reiterate what's in that post:
Put the following into a text file:
!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
Save it as whatever-you-like.kmap. [In the tutorial it says to save it into /etc/ but you can just as easily put it in your home space or wherever else you want.]
In your .bashrc file (in your home dir) put: xmodmap whatever-you-called-it.kmap
Ta-da! 
The ubuntu tutorial is.. more fiddly with no apparent benefits. If you didn't put the file in your home folder make sure to specify where you put it in .bashrc,
e.g. xmodmap /in/a/folder/somewhere/whatever-you-called-it.kmap
Hope this is helpful to someone..
Offline
Hope this is helpful to someone..
Indeed it is!
I was looking for a way to disable caps lock so my ~/.nocaps.kmap file contain just one line:
remove Lock = Caps_Lock
Many thanks!
Offline
after applying updates doesn't work anymore... 
Offline
I've been trying to swap the ctrl and caps lock keys to make Emacs use easier.
Has anyone found a good solution yet? I tried what is on the Emacs wiki:
http://www.emacswiki.org/emacs/MovingTheCtrlKey#toc7
for Debian but it isn't working.
Offline
Apparently the stuff posted to the Debian wiki IS working, but I (for whatever reason) had to do a restart.
My CAPS LOCK key now functions as a control, and the ctrl key functions as CAPS LOCK.
Fantastic.
I suggest the link in my above post
:):)
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.