Skip to content

Instantly share code, notes, and snippets.

@10tion
Last active June 29, 2022 09:22
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 10tion/b83abcfe6be319a4e56123aa355595d7 to your computer and use it in GitHub Desktop.
Save 10tion/b83abcfe6be319a4e56123aa355595d7 to your computer and use it in GitHub Desktop.
#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 Key (Win Key), ^ -> Ctrl Key
; $#m -> Super + m, $^a -> Ctrl + a
; minimize current window
$#m::WinMinimize, A
; close current window
$#w::Send !{f4}
; PowerToys run
$#Space::Send {Ctrl Down}{Space}{Ctrl Up}
; Input method
$^Space::Send {LWin Down}{Space}{LWin Up}
; Super + Left click, jump to definition
$#LButton::Send {Ctrl Down}{LButton}{Ctrl Up}
#IfWinNotActive ahk_exe WindowsTerminal.exe
; navigation
$^e::Send {End}
$^a::Send {Home}
$^b::Send {Left}
$^f::Send {Right}
$^n::Send {Down}
$^p::Send {Up}
; remap occupied shortcuts
$#a::Send ^a
$#f::Send ^f
$#n::Send ^n
$#p::Send ^p
#IfWinNotActive
; copy & paste
$#s::Send ^s
$#c::Send {Ctrl Down}{Insert}{Ctrl Up}
$#v::Send {shift down}{Insert}{shift up}
$#x::Send ^x
$#z::Send ^z
; tabs
; $#w::Send ^w
; $#t::Send ^t
; $#+t::Send ^+t
; disable left win
~LWin::Send {Blind}{vkE8}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment