Skip to content

Instantly share code, notes, and snippets.

@lindhe
Last active July 14, 2022 15:58
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 lindhe/2130c5b61af684cc289cc34d5d843e46 to your computer and use it in GitHub Desktop.
Save lindhe/2130c5b61af684cc289cc34d5d843e46 to your computer and use it in GitHub Desktop.
AutoHotKey (AHK)
; Place me in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
#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.
; Map touchpad gestures to custom keybindings (Ctrl+F1, ...)
^F1:: Run wt
^F2:: Run Code
^F3:: MsgBox "4F Swipe Up"
^F4:: MsgBox "4F Swipe Down"
; Place me in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
#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.
; Super+Sift+Q = Alt+4
#+q:: Send !{F4}
; Super+Enter to open Terminal
#Enter:: Run wt
; Super+F = Maximize
#f:: Send {F11}
; Place me in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
#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.
;; Unmap Widows' stupid AltGr+Esc mapping
<^>!Escape:: ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment