Skip to content

Instantly share code, notes, and snippets.

View Benjaminlooi's full-sized avatar
🌈
Farting Rainbows

Benjamin Looi Benjaminlooi

🌈
Farting Rainbows
View GitHub Profile
@Benjaminlooi
Benjaminlooi / gist:df5326c7c37e54aa285173243fb9152e
Created April 28, 2026 08:02
AutoHotkey v2 script to Remap Caps Lock to a Hyper key (Ctrl+Alt+Shift+Win) on hold, Escape on tap, and preserves actual Caps Lock via Shift+Caps.
#Requires AutoHotkey v2.0
; *CapsLock::
; {
; startTime := A_TickCount
; Send("{Ctrl down}{Shift down}{Alt down}{LWin down}")
; KeyWait("CapsLock")
; Send("{Ctrl up}{Shift up}{Alt up}{LWin up}")
; if (A_TickCount - startTime < 200) && (A_PriorKey = "CapsLock")

Keybase proof

I hereby claim:

  • I am benjaminlooi on github.
  • I am benjaminlooi (https://keybase.io/benjaminlooi) on keybase.
  • I have a public key ASAFDJOzOTAYpp7OuNMds51OK4rbO_dvvO_4DsJmmlm6aQo

To claim this, I am signing this object: