Skip to content

Instantly share code, notes, and snippets.

View cellarweasel's full-sized avatar

Evan Root cellarweasel

View GitHub Profile
@joshschmelzle
joshschmelzle / remap-capslock-to-control-win10.md
Last active March 6, 2026 18:18
Remap Caps Lock to Control on Windows 10

Ways to remap caps lock to control on Windows 10

These methods in this gist worked for me on my U.S.-based keyboard layouts. I am unsure about other layouts. If you have problems, revert your changes; delete the registry key you created (and reboot).

Update: you should probably scroll down to approach 4 where I suggest using Microsoft PowerToys Keyboard Manager.

Approach 1. Manually through regedit

Navigate to and create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map.

@yut148
yut148 / gist:bfa1a40b4efcf19949f7998032918412
Created February 18, 2017 03:47
pijul install centos7-3.1611.el7.centos.x86_64
# rpm -qa centos-release
centos-release-7-3.1611.el7.centos.x86_64
curl -OL "https://static.rust-lang.org/cargo-dist/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz"
tar zxvf cargo-nightly-x86_64-unknown-linux-gnu.tar.gz
yum install epel-release
# yum install epel-release
Loaded plugins: fastestmirror