Skip to content

Instantly share code, notes, and snippets.

@alepez
Created March 7, 2019 12:49
Show Gist options
  • Save alepez/4bca5d8d3cd854f2bb60e2b136070e36 to your computer and use it in GitHub Desktop.
Save alepez/4bca5d8d3cd854f2bb60e2b136070e36 to your computer and use it in GitHub Desktop.
AutoHotkey: italian accents on us layout. Caps-Lock -> Ctrl/Esc
; Map Caps-Lock to ESC (single press) and Ctrl (long press)
#InstallKeybdHook
SetCapsLockState, alwaysoff
Capslock::
Send {LControl Down}
KeyWait, CapsLock
Send {LControl Up}
if ( A_PriorKey = "CapsLock" )
{
Send {Esc}
}
return
; Italian characters on US keyboard
>!e::Send è
>!+e::Send È
>!d::Send é
>!+d::Send É
>!a::Send à
>!+a::Send À
>!o::Send ò
>!+o::Send Ò
>!u::Send ù
>!+u::Send Ù
>!i::Send ì
>!+i::Send Ì
; Run babun terminal on Win+C
#c::Run, babun, , min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment