Skip to content

Instantly share code, notes, and snippets.

@desfero
Last active October 30, 2016 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save desfero/c82930d7be5aef7eaae2 to your computer and use it in GitHub Desktop.
Save desfero/c82930d7be5aef7eaae2 to your computer and use it in GitHub Desktop.
AutoHotkey script, to improve typing speed. Feel free to propose new combinations. https://autohotkey.com/
LAlt & j::
If GetKeyState("Ctrl", "P")
Send ^{Left}
Else
Send {Left}
Return
LAlt & l::
If GetKeyState("Ctrl", "P")
Send ^{Right}
Else
Send {Right}
Return
LAlt & i::
If GetKeyState("Ctrl", "P")
Send ^{Up}
Else
Send {Up}
Return
LAlt & k::
If GetKeyState("Ctrl", "P")
Send ^{Down}
Else
Send {Down}
Return
LAlt & Space::
Send {Esc}
Return
CapsLock::Backspace
; Double Shift: toogle CapsLock
Shift::
If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey<400)
SetCapsLockState, % GetKeyState("CapsLock", "T")? "Off":"On"
Return
; -- Browser
; Win + B run chrome browser instance
#b:: Run chrome
; -- Spotify
; "CTRL + LEFT" for previous
^Left::Media_Prev
; "CTRL + RIGHT" for next
^Right::Media_Next
; "CTRL + SPACE" for pause
^Space::Media_Play_Pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment