Skip to content

Instantly share code, notes, and snippets.

@daniepetrov
Last active December 19, 2019 11:50
Show Gist options
  • Save daniepetrov/6d8fde986464de9116b36deda5823522 to your computer and use it in GitHub Desktop.
Save daniepetrov/6d8fde986464de9116b36deda5823522 to your computer and use it in GitHub Desktop.
Autohotkey script for OSX like key bindings
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetCapsLockState, AlwaysOff
CapsLock & h::Send, {blind}{Left}
CapsLock & j::Send, {blind}{Down}
CapsLock & k::Send, {blind}{Up}
CapsLock & l::Send, {blind}{Right}
CapsLock & [::Send !{F8}
CapsLock & ]::Send !{F9}
RShift & CapsLock:: Capslock
Ctrl & Tab:: AltTab
!Tab:: Send ^{Tab}
!+Tab:: Send ^+{Tab}
Alt & Space::Send #{Space}
Ctrl & q::Send !{F4}
#IfWinActive ahk_class CabinetWClass
^Backspace::Send {Delete}
return
#IfWinActive
@daniepetrov
Copy link
Author

Также нужно запустить SharpKeys и там перебиндить Alt и Ctrl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment