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

nulltier commented May 4, 2013

Ooh, Heaven. How I lived without them!

@nulltier
Copy link
Author

nulltier commented May 6, 2013

works only with left alt(<!)

@nulltier
Copy link
Author

nulltier commented Jun 1, 2013

added support for normal copy paste hotkeys in powershell

@nulltier
Copy link
Author

nulltier commented Jun 2, 2013

rev.7 fix typo

@nulltier
Copy link
Author

nulltier commented Jun 2, 2013

rev. 8 hotkeys for powershell more complicated problem that I expected, commented all after several aproaches.

@nulltier
Copy link
Author

rev. 9-10 add Grave accent for Russian layout

@nulltier
Copy link
Author

grave accent пока не работает

@nulltier
Copy link
Author

nulltier commented Oct 9, 2013

rev. 11 fix problems with holding the alt+(up-down-right-left) combinations

@nulltier
Copy link
Author

nulltier commented Oct 9, 2013

rev 12 | change combinations to get right dot and comma on Russian layout

@nulltier
Copy link
Author

rev 13 | left alt+2 -> @, fix for arrows in html inputs

@nulltier
Copy link
Author

rev 14 | now backspace and delete works fine with occasionaly pushed left alt

@nulltier
Copy link
Author

rev 15 | remove stupid ctrl+w hotkey for keepass

@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