Author Topic: Mapping CTRL to Capslock  (Read 1823 times)

0 Members and 1 Guest are viewing this topic.

Offline longweight

  • philanthropist
  • Thread Starter
  • Posts: 1494
Mapping CTRL to Capslock
« 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

Offline braaaiiins

  • Posts: 138
  • Location: Texas
Re: Mapping CTRL to Capslock
« Reply #1 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
« Last Edit: Thu, 02 August 2012, 03:47:26 by braaaiiins »

Offline longweight

  • philanthropist
  • Thread Starter
  • Posts: 1494
Re: Mapping CTRL to Capslock
« Reply #2 on: Thu, 02 August 2012, 03:49:54 »
Thanks! Is that all that I have to put into an Autohotkey script?

Offline IvanIvanovich

  • Mr. Silk Underwear
  • Posts: 8199
  • Location: USA
Re: Mapping CTRL to Capslock
« Reply #3 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

Offline braaaiiins

  • Posts: 138
  • Location: Texas
Re: Mapping CTRL to Capslock
« Reply #4 on: Thu, 09 August 2012, 23:15:42 »
Thanks! Is that all that I have to put into an Autohotkey script?

Yep!

Offline The_Beast

  • * Maker
  • Posts: 3964
  • Location: Wisconsin
  • I like wood ಠ_๏
Re: Mapping CTRL to Capslock
« Reply #5 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
Vendor Status: Sadly, not taking any orders/pre-orders at this time

Vendor Quick Links: | Vendor Forum | Hardwood Wrist Rests | Hardwood 60% Cases | Customer Gallery | Giveaway |

Offline daerid

  • Posts: 4276
  • Location: Denver, CO
    • Rossipedia
Re: Mapping CTRL to Capslock
« Reply #6 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.

Offline dorkvader

  • Posts: 6289
  • Location: Boston area
  • all about the "hack" in "geekhack"
Re: Mapping CTRL to Capslock
« Reply #7 on: Fri, 10 August 2012, 02:24:28 »
What's a good way to do this in linux, Edit the language layout file?

Offline davkol

  •  Post Editing Timeout
  • Posts: 4994
Re: Mapping CTRL to Capslock
« Reply #8 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
« Last Edit: Mon, 10 December 2018, 14:28:50 by davkol »

Offline pyro

  • Posts: 177
Re: Mapping CTRL to Capslock
« Reply #9 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.

Offline Okita

  • Posts: 46
Re: Mapping CTRL to Capslock
« Reply #10 on: Fri, 10 August 2012, 14:12:37 »
I used a program called Keytweak on Windows XP. Worked like a charm.