Skip to content

Instantly share code, notes, and snippets.

View Ivan-Igorevich's full-sized avatar

Wayne H. Shephard Ivan-Igorevich

View GitHub Profile
@wfxr
wfxr / swap_ctrl_caps.ps1
Last active October 10, 2022 05:48
Swap ctrl and capslock in Win10
$hexified = "00,00,00,00,00,00,00,00,03,00,00,00,3A,00,1D,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);