Last active
January 11, 2023 17:19
-
-
Save scottming/5405b12eb2c69a4e0e54 to your computer and use it in GitHub Desktop.
; Autohotkey Capslock Remapping Script
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
; Autohotkey Capslock Remapping Script | |
; - Deactivates capslock for normal (accidental) use. | |
; - Hold Capslock and drag anywhere in a window to move it (not just the title bar). | |
; - Access the following functions when pressing Capslock: | |
;Cursor keys - h, j, k, l | |
;Home,End - N, ; | |
;Page up,down - - = | |
;Esc - CapsLock only | |
;CapsLock - Space | |
#Persistent | |
SetCapsLockState, AlwaysOff | |
; Capslock + hjkl (left, down, up, right) | |
Capslock & h::Send {Blind}{Left DownTemp} | |
Capslock & h up::Send {Blind}{Left Up} | |
Capslock & j::Send {Blind}{Down DownTemp} | |
Capslock & j up::Send {Blind}{Down Up} | |
Capslock & k::Send {Blind}{Up DownTemp} | |
Capslock & k up::Send {Blind}{Up Up} | |
Capslock & l::Send {Blind}{Right DownTemp} | |
Capslock & l up::Send {Blind}{Right Up} | |
; Capslock + n (home, end) | |
Capslock & n::SendInput {Blind}{Home Down} | |
Capslock & n up::SendInput {Blind}{Home Up} | |
Capslock & `;::SendInput {Blind}{End Down} | |
Capslock & `; up::SendInput {Blind}{End Up} | |
Capslock & Space:: | |
If GetKeyState("CapsLock", "T") = 1 | |
SetCapsLockState, AlwaysOff | |
Else | |
SetCapsLockState, AlwaysOn | |
Return | |
; Capslock only, Send Escape | |
CapsLock::Send, {ESC} | |
; Capslock + b, open the gitbash | |
CapsLock & s::Send +{F10},Send s | |
;\ to |, <+\ to \ | |
\::+\ | |
Shift & \::Send {\} | |
; Capslock + w, run worktile | |
CapsLock & w:: | |
Run https://worktile.com/project/4dbc6fdb5dfd49079da5c8c811b2cb8d/task | |
return | |
^`::^/ | |
; Capslock + G | |
CapsLock & g:: | |
Run C:\Program Files\Google\Chrome\Application\chrome.exe | |
return | |
; Cpaslock + -= ,send up,dowm | |
Capslock & =::SendInput {Blind}{PgDn Down} | |
Capslock & = up::SendInput {Blind}{PgDn Up} | |
Capslock & -::SendInput {Blind}{PgUp Down} | |
Capslock & - up::SendInput {Blind}{PgUp Up} | |
;Caplock & p , Send click | |
Capslock & p::Send +{Click 600, 200} | |
;Capslock & q ==> win down | |
Capslock & q::SendInput #{Down} | |
;Capslock & ` ==> win up | |
Capslock & `::SendInput #{up} | |
;Capslock & Tab ==> Alt Tab | |
Capslock & Tab::SendInput ^{Tab} | |
^0::#space |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welcome to type your suggestion, but I have not used windows for many years.
And I'm a vim user, I used the vim mode wether it's vscode, or idea, etc..