this post was submitted on 27 Oct 2023
1 points (100.0% liked)

Windows

81 readers
1 users here now

founded 1 year ago
MODERATORS
 

To swap the Caps Lock and Escape keys on Windows, there are several methods available. Here are some of them:

  1. Using PowerToys:
  • Download and install PowerToys from the Microsoft Github page.
  • Open PowerToys and browse to the Keyboard Manager.
  • Enable the Keyboard Manager and click Remap a key.
  • Choose Caps Lock -> Escape.
  1. Using PowerShell:
  • Open Windows PowerShell (Admin) by pressing Win + X.
  • Enter these commands:
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);
  • Save and reboot.
  1. Using AutoHotkey:
  • Download and install AutoHotkey.
  • Create a new script and add the following lines:
Capslock::Esc
Esc::Capslock
  • Save the script and run it.
  1. Using Uncap:
  • Download and run Uncap, an open-source tool that maps Caps Lock to Escape or any key to any key without setup or configuration files.

Note that some of these methods may require administrator privileges or the installation of third-party software.

you are viewing a single comment's thread
view the rest of the comments
[–] Dymonika@beehaw.org 1 points 5 months ago

I doubled Caps Lock as another Enter key and it's been so vastly helpful, since my right hand is usually on the mouse.