Last active
June 4, 2021 11:27
-
-
Save edwvilla/a35e0ae0d2dac7df6a179a3a48a3c2d9 to your computer and use it in GitHub Desktop.
My custom keys for autohotkey on a motospeed ck62 keyboard, based on https://gist.github.com/eduardomartines/371b790d1c102bccca6db9a25ad2b464
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 & ,:: Send {Del} | |
CapsLock & .:: Send {End} | |
CapsLock & k:: Send {Ins} | |
CapsLock & l:: Send {Home} | |
CapsLock & `;:: Send {PgUp} | |
CapsLock & ':: Send {PgDn} | |
CapsLock & [:: Send {PrintScreen} | |
CapsLock & ]::Send {Pause} | |
; Functions | |
CapsLock & 1::Send {F1} | |
CapsLock & 2::Send {F2} | |
CapsLock & 3::Send {F3} | |
CapsLock & 4::Send {F4} | |
CapsLock & 5::Send {F5} | |
CapsLock & 6::Send {F6} | |
CapsLock & 7::Send {F7} | |
CapsLock & 8::Send {F8} | |
CapsLock & 9::Send {F9} | |
CapsLock & 0::Send {F10} | |
CapsLock & -::Send {F11} | |
CapsLock & =::Send {F12} | |
CapsLock & Backspace::Delete | |
CapsLock & Escape:: | |
If GetKeyState("Shift") | |
Send {~} | |
Else | |
Send {``} | |
Return | |
; Arrow Up | |
Capslock & /:: | |
If GetKeyState("Shift") | |
Send +{Up} | |
Else | |
Send {Up} | |
Return | |
; Arrow Left | |
Capslock & RAlt:: | |
If GetKeyState("Shift") && GetKeyState("LWin") | |
Send +{Home} | |
Else | |
If GetKeyState("Shift") && GetKeyState("Control") | |
Send +^{Left} | |
Else | |
If GetKeyState("Shift") | |
Send +{Left} | |
Else | |
If GetKeyState("LWin") | |
Send {Home} | |
Else | |
If GetKeyState("Control") | |
Send ^{Left} | |
Else | |
Send {Left} | |
Return | |
; Arrow Down | |
Capslock & AppsKey:: | |
If GetKeyState("Shift") | |
Send +{Down} | |
Else | |
Send {Down} | |
Return | |
; Arrow Right | |
Capslock & RControl:: | |
If GetKeyState("Shift") && GetKeyState("LWin") | |
Send +{End} | |
Else | |
If GetKeyState("Shift") && GetKeyState("Control") | |
Send +^{Right} | |
Else | |
If GetKeyState("Shift") | |
Send +{Right} | |
Else | |
If GetKeyState("LWin") | |
Send {End} | |
Else | |
If GetKeyState("Control") | |
Send ^{Right} | |
Else | |
Send {Right} | |
Return | |
; Arrows Alternative | |
CapsLock & w::Send {up} | |
CapsLock & a::Send {left} | |
CapsLock & s::Send {down} | |
CapsLock & d::Send {right} | |
; Volume | |
CapsLock & c::Send {Volume_Up} | |
CapsLock & x::Send {Volume_Down} | |
CapsLock & z::Send {Volume_Mute} | |
; Caps | |
CapsLock & Tab::Send {CapsLock} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Any ideas about how to use it on linux based system?