Skip to content

Instantly share code, notes, and snippets.

@brihter
Last active April 25, 2019 08:17
Show Gist options
  • Save brihter/471843c7dc3d84689f9eac54ace7cefd to your computer and use it in GitHub Desktop.
Save brihter/471843c7dc3d84689f9eac54ace7cefd to your computer and use it in GitHub Desktop.
remap caps lock to ctrl
# source https://superuser.com/a/997448/1027439
$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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment