Skip to content

Instantly share code, notes, and snippets.

@ivanstepanovftw
Created July 5, 2025 11:56
Show Gist options
  • Save ivanstepanovftw/13d9ae9d19cd21c9f2cfb21d6cdc80f7 to your computer and use it in GitHub Desktop.
Save ivanstepanovftw/13d9ae9d19cd21c9f2cfb21d6cdc80f7 to your computer and use it in GitHub Desktop.
Windows `setxkbmap -option "grp:caps_toggle"` alternative.
#Requires AutoHotkey v2.0
SetCapsLockState "AlwaysOff"
CapsLock::
{
DllCall("PostMessage", "Ptr", 0xFFFF, "UInt", 0x50, "Ptr", 1, "Ptr", 0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment