piusare/piusareLite.ahk
2023-01-31 19:39:12 +01:00

27 lines
No EOL
743 B
AutoHotkey

;Change virtual desktop
RAlt::SendInput ^#{Left}
LCtrl::SendInput ^#{Right}
;General remappings
CapsLock::LControl
RShift & LShift::CapsLock
LShift & RShift::CapsLock
;*CapsLock::return
;Adding tonic vowels with tilde and ñ to non-ES keyboard
!a::á
!e::é
!i::í
!o::ó
!u::ú
!n::Send, {U+00F1}
!/::Send, {U+00FC}
!+a::Á
!+e::É
!+i::Í
!+o::Ó
!+u::Ú
!+n::Send, {U+00D1}
!+/::Send, {U+00DC}
;;Where :C?*:U"X:: contains the hotstring trigger, this case being typing U " X all together. Autohotkey gives us some control over how to interpret the hotstring, in this case by inserting C?* we are telling AHK to be case sensitie (C), to trigger even as part of a word (?) and to trigger without an ending character such as space or newline(*).