Skip to content

Instantly share code, notes, and snippets.

@krizajb
Last active April 5, 2020 06:59
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 krizajb/b0792b7fea6b89b697f469d8ad5d5ff8 to your computer and use it in GitHub Desktop.
Save krizajb/b0792b7fea6b89b697f469d8ad5d5ff8 to your computer and use it in GitHub Desktop.
Authotkey script for remapping windows (super) key to Shift+Alt+Space and windows key + h to minimize the current window, windows + move.
; Remap windows key + h to minimize the current window
#h::
WinMinimize A
return
; Disable the keyboard layout switcher
Ctrl & Shift::
return
; Remap windows key to the launcher
<#LButton::return ; Do nothing if a left mouse button is clicked
LWin up::
If (A_PriorKey = "LWin") ; LWin was pressed alone
Send, !{space}
return
; In this case its necessary to define a custom combination by using "&" or "<#"
; to avoid that LWin loses its original function as a modifier key:
<#d:: Send #d ; <# means LWin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment