Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anson-vandoren/cd72434c782ac62b4bae433488f96cc2 to your computer and use it in GitHub Desktop.
Save anson-vandoren/cd72434c782ac62b4bae433488f96cc2 to your computer and use it in GitHub Desktop.
#NoEnv
#Warn
#SingleInstance force
SendMode Input
; Use Command-Space to pin a window on top
#Space:: Winset, Alwaysontop, , A
Return
; Change control-W to control-F4
^w::^F4
; Not sure why !F4 doesn't work, but it doesn't. This hack does, though
^q::Send {Lalt down}{F4}{Lalt up}
; Send cursor home/end with CMD+Left/Right
^Left::Send {Home}
^Right::Send {End}
^+Left::Send {shift down}{Home}{shift up}
^+Right::Send {shift down}{End}{shift up}
; Command space opens the Start menu (like launcher)
^Space::Send, ^{Esc}
; Cycle between windows with Cmd+Tab (replaces Alt+Tab in Windows)
LCtrl & Tab::AltTab
; Use Cmd+Backspace as the Delete key, since it doesn't exist on this keybaord
LCtrl & BS::Send {Del}
; Minimize windows with Cmd+m
^m::WinMinimize,a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment