geekhack

geekhack Community => Keyboards => Topic started by: longweight on Thu, 02 August 2012, 03:12:23

Title: Mapping CTRL to Capslock
Post by: longweight on Thu, 02 August 2012, 03:12:23
Hi all,

I've really taken to the switched control and capslock option on my Poker and the control position on the HHKB. What would be the best way to make this happen on my Filco TKL at home?

Thanks

Long
Title: Re: Mapping CTRL to Capslock
Post by: braaaiiins on Thu, 02 August 2012, 03:44:29
Autohotkey!

I put this in my script to do it. It changes Capslock into the Left  Control button. It also makes Alt+Shift activate capslock. Just made more sense to me that way.

Capslock::LCtrl
!Shift::Capslock

If you just wanted to swap capslock and left control then use this:

Capslock::LCtrl
LCtrl::Capslock
Title: Re: Mapping CTRL to Capslock
Post by: longweight on Thu, 02 August 2012, 03:49:54
Thanks! Is that all that I have to put into an Autohotkey script?
Title: Re: Mapping CTRL to Capslock
Post by: IvanIvanovich on Thu, 02 August 2012, 07:15:00
Bah, do it at the system level, just add this in your registry...
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3A,00,1D,00,1D,00,3A,00,00,00,00,00
Title: Re: Mapping CTRL to Capslock
Post by: braaaiiins on Thu, 09 August 2012, 23:15:42
Thanks! Is that all that I have to put into an Autohotkey script?

Yep!
Title: Re: Mapping CTRL to Capslock
Post by: The_Beast on Thu, 09 August 2012, 23:22:24
God I love AHK, I use it a TON at work. I have a general script for functions I use a lot, on the turns caps lock into another layer and one that detects with AutoCAD is open so that caps lock is always on when AutoCAD is in use, but always off it anything else is running
Title: Re: Mapping CTRL to Capslock
Post by: daerid on Fri, 10 August 2012, 01:17:36
Seconded for Autohotkey. Don't think I could live without it. Although now with an 87u both at home and at work I might just use the hardware dip switches.
Title: Re: Mapping CTRL to Capslock
Post by: dorkvader on Fri, 10 August 2012, 02:24:28
What's a good way to do this in linux, Edit the language layout file?
Title: Re: Mapping CTRL to Capslock
Post by: davkol on Fri, 10 August 2012, 05:40:32
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
Title: Re: Mapping CTRL to Capslock
Post by: pyro on Fri, 10 August 2012, 07:02:32
 To use xmodmap you might have to switch the keyboard layout to something that uses layers extensively (like bepo), or you might not be able to map every layer on every key.
Title: Re: Mapping CTRL to Capslock
Post by: Okita on Fri, 10 August 2012, 14:12:37
I used a program called Keytweak on Windows XP. Worked like a charm.