Skip to content

Instantly share code, notes, and snippets.

@matti
Created January 25, 2025 22:50
Show Gist options
  • Save matti/630d862512b883c24b685ace37de2074 to your computer and use it in GitHub Desktop.
Save matti/630d862512b883c24b685ace37de2074 to your computer and use it in GitHub Desktop.
#SingleInstance
; Sharpkeys:
; - LAlt -> RControl
; - Copilot -> LAlt
; copilot-key "Special: Right Shift (00_36)" to Left Windows (E0_5B)
; ~LWin::vkE8 ; prevents windows key
; KeyHistory
; MsgBox "yo dawg"
^+r::
{
MsgBox "Reload"
Reload
}
SelectAll := 0
;LWin::LAlt
;LAlt::LWin
;LWin::LAlt
;LAlt::RControl
; RAlt::LWin
^+q::
{
MsgBox "bye"
ExitApp
}
>^d::
{
if WinActive("ahk_exe Code.exe")
Send "^d"
else if WinActive("ahk_exe WindowsTerminal.exe")
Send("{Alt Down}{Shift Down}{-}{Shift Up}{Alt Up}")
}
>^+d::
{
if WinActive("ahk_exe WindowsTerminal.exe")
Send("{Alt Down}{Shift Down}{+}{Shift Up}{Alt Up}")
}
>^Tab::
{
Send "{LAlt Down}{Tab}"
KeyWait "RControl", "L"
Send "{LAlt Up}"
}
/*
>^a::
{
global SelectAll
SelectAll := 1
Send "^a"
SelectAll := 0
}
*/
>^a::
{
Send "^a"
}
<^a::Send "{Home}"
<^e::Send "{End}"
>^v::
{
if WinActive("ahk_exe WindowsTerminal.exe")
Send "^+v"
else
Send "^v"
}
>^q::
{
if WinActive("ahk_exe WindowsTerminal.exe")
WinClose
else
Send "!{f4}"
}
>^2::Send "@"
/*
#^l::
{
; disable windows live captions
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment