There are some of us who grew up with the Ctrl key to the left
of the A key, where many keyboards now put Caps Lock.
This xmodmap trick lets you turn that key back into Ctrl.
I rarely use Caps Lock, so I put that function on the Print key.
Add to ~/.xmodmaprc (or it may be .Xmodmap ?) the following:
!!
! Make Caps_Lock a Control key, make "Print" be the Caps_Lock
remove Lock = Caps_Lock
add Control = Caps_Lock
keycode 117 = Print
add Lock = Print
Note that the keycode for Print may be different on your keyboard.
I've also found some confusion with backspace -vs- delete.
There are keyboards with Delete where there should be Backspace.
This this will make either key do both, using the shift key to
get the "other" function:
!!
! Make Backspace/Delete each other under shift
!
keysym BackSpace = BackSpace Delete
keysym Delete = Delete BackSpace
-Eric
On Thu, 5 May 2011, Michael Chase-Salerno wrote:
On 05/05/2011 07:34 AM, Sean Dague wrote:
And lastly, again from the pre meeting and dinner, you can turn your
Caplock into another modifier key that you can use for shortcuts instead
of just MAKING YOU SOUND LIKE A CRAZY PERSON ON THE INTERNET.
Create a file called .Xmodmap in your home directory and make it contain:
! No Caps Lock
clear lock
! Caps Lock as Hyper key (doesn't exist on most keyboards)
keycode 0x42 = Hyper_L
remove mod4 = Hyper_L
remove mod3 = Hyper_L
add mod3 = Hyper_L
Then run "xmodmap .Xmodmap" and it will take. When X starts it will load
this file for you by default, so you only need to do this if you don't
want to log out and back in again the first time you change it.
-Sean
This is also available via "System->Preferences->Keyboard->Layouts" then the
"Options..." button. There's a Caps Lock section there, and a bunch of other
things as well. Some of the CapsLock options are hidden under the other keys
too, for example, if you want to make CapsLock an additional Ctrl, it's under
the CtrlKey section.
Mike
_______________________________________________
Mid-Hudson Valley Linux Users Group http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm) MHVLS Auditorium
Jun 1 - Zimbra
Jul 6 - Jul 2011
Aug 3 - Scala - 100th MHVLUG meeting
--
Eric Myers <[email protected]> 845-475-8176
PGP Key #6E2D2259/RSA: BA39 1D46 5EC3 0D59 C2AC 6FCB F920 4DC8
PGP Key #E519EAC3/DSS: D15B 9A50 B1ED 2947 EC29 B0F6 EA61 FB6E E519 EAC3
_______________________________________________
Mid-Hudson Valley Linux Users Group http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm) MHVLS Auditorium
Jun 1 - Zimbra
Jul 6 - Jul 2011
Aug 3 - Scala - 100th MHVLUG meeting