Skip to content

Instantly share code, notes, and snippets.

View the12thbenyoung's full-sized avatar

Ben Young the12thbenyoung

  • Cleveland, OH
View GitHub Profile
@the12thbenyoung
the12thbenyoung / caps_lock_ctrl.ps1
Created September 21, 2020 18:46
Powershell script to swaps caps lock and ctrl
$hexified = "00,00,00,00,00,00,00,00,03,00,00,00,1d,00,3a,00,3a,00,1d,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)

Keybase proof

I hereby claim:

  • I am the12thbenyoung on github.
  • I am the12thbenyoung (https://keybase.io/the12thbenyoung) on keybase.
  • I have a public key ASB5j5FS95k6fM-s4NvPGDHChMsuVkflfR03y6Vfwf5oVAo

To claim this, I am signing this object: