Skip to content

Instantly share code, notes, and snippets.

@nulltier
Last active January 9, 2022 15:31
Show Gist options
  • Select an option

  • Save nulltier/5518671 to your computer and use it in GitHub Desktop.

Select an option

Save nulltier/5518671 to your computer and use it in GitHub Desktop.
my autohotkey configuration, hotkeys
; simplified version of hotkeys responsible only for navigavation, all special symbols left on
; on responsibility of universal keyboard layout
; https://github.com/braindefender/universal-layout
;
; <! - left alt-key
; ^ - ctrl-key
; + - shift-key
; sc021 - W
; sc010 - D
; sc011 - F
; sc014 - T
; sc013 - R
; sc024 - J
; sc025 - K
; sc026 - L
; sc017 - I
; sc01A - [
; sc01B - ]
; sc027 - ;
; sc02B - \
; sc035 - /
; sc033 - ,
; sc034 - .
;++++++++++++++++++++
; LEFT: J letter
;++++++++++++++++++++
<!sc024::Send,{Left}
return
^<!sc024::Send,^{Left}
return
+<!sc024::Send,+{Left}
return
+^<!sc024::Send,+^{Left}
return
;++++++++++++++++++++
;DOWN: K letter
;++++++++++++++++++++
<!sc025::Send,{Down}
return
^<!sc025::Send,^{Down}
return
+<!sc025::Send,+{Down}
return
+^<!sc025::Send,+^{Down}
return
;++++++++++++++++++++
;UP: I letter
;++++++++++++++++++++
<!sc017::Send,{Up}
return
^<!sc017::Send,^{Up}
return
+<!sc017::Send,+{Up}
return
+^<!sc017::Send,+^{Up}
return
;++++++++++++++++++++
;RIGHT: L letter
;++++++++++++++++++++
<!sc026::Send,{Right}
return
^<!sc026::Send,^{Right}
return
+<!sc026::Send,+{Right}
return
+^<!sc026::Send,+^{Right}
return
;+++++
;DELETE
;+++++
<!Delete::Send,{Delete}
return
;+++++
;BACKSPACE
;+++++
<!Backspace::Send,{Backspace}
return
; <! - left alt-key
; ^ - ctrl-key
; + - shift-key
; sc021 - W
; sc010 - D
; sc011 - F
; sc014 - T
; sc013 - R
; sc024 - J
; sc025 - K
; sc026 - L
; sc017 - I
; sc01A - [
; sc01B - ]
; sc027 - ;
; sc02B - \
; sc035 - /
; sc033 - ,
; sc034 - .
;++++++++++++++++++++
; LEFT: J letter
;++++++++++++++++++++
<!sc024::Send,{Left}
return
^<!sc024::Send,^{Left}
return
+<!sc024::Send,+{Left}
return
+^<!sc024::Send,+^{Left}
return
;++++++++++++++++++++
;DOWN: K letter
;++++++++++++++++++++
<!sc025::Send,{Down}
return
^<!sc025::Send,^{Down}
return
+<!sc025::Send,+{Down}
return
+^<!sc025::Send,+^{Down}
return
;++++++++++++++++++++
;UP: I letter
;++++++++++++++++++++
<!sc017::Send,{Up}
return
^<!sc017::Send,^{Up}
return
+<!sc017::Send,+{Up}
return
+^<!sc017::Send,+^{Up}
return
;++++++++++++++++++++
;RIGHT: L letter
;++++++++++++++++++++
<!sc026::Send,{Right}
return
^<!sc026::Send,^{Right}
return
+<!sc026::Send,+{Right}
return
+^<!sc026::Send,+^{Right}
return
;+++++
;DELETE
;+++++
<!Delete::Send,{Delete}
return
;+++++
;BACKSPACE
;+++++
<!Backspace::Send,{Backspace}
return
;+++++
;CODING STUFF IN RUSSIAN KEYBOARD LAYOUT
;+++++
; [ in eng-russian keyboard
<!sc01A::
Send,{[}
return
; ] in eng-russian keyboard
<!sc01B::
Send,{]}
return
; { in eng-russian keyboar
+<!sc01A::
Send,{{}
return
; } in eng-russian keyboard
+<!sc01B::
Send,{}}
return
<!sc027::
Send,{;}
return
+<!sc027::
Send,{:}
return
<!sc02B::
Send,{\}
return
+<!sc02B::
Send,{|}
return
<!sc028::
Send,{'}
return
+<!sc028::
Send,{"}
return
<!,::
Send,{,}
return
<!.::
Send,{.}
return
<!sc035::
Send,{/}
return
+<!sc035::
Send,{?}
return
<!sc033::
Send,{,}
return
<!sc034::
Send,{.}
return
+<!sc033::
Send,{<}
return
+<!sc034::
Send,{>}
return
;+++++
; @
;+++++
<!2::
Send,{@}
return
@nulltier
Copy link
Author

rev 16 | add curly braces for if statement

@nulltier
Copy link
Author

rev 17 | add timestamp hotkey

@nulltier
Copy link
Author

rev 18 | cool time counting staff

@nulltier
Copy link
Author

nulltier commented Aug 5, 2016

rev 19 | the biggest update since this script became my everyday tool, now it starts without problems with any active keyboard layout, Language related hotkeys rewrited with using Special Keys. Also was introduced some additional keys missed on Russian keyboard. I am happy.

@nulltier
Copy link
Author

removed unused parts

@nulltier
Copy link
Author

For Linux use AutoKey. The same hotkeys could be configured with less pain within an hour or so.
https://github.com/autokey/autokey

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