Skip to content

Instantly share code, notes, and snippets.

@Konfekt
Created April 27, 2024 20:04
Show Gist options
  • Select an option

  • Save Konfekt/077ed3d9c2dc2e40dbb9c4d06353edaa to your computer and use it in GitHub Desktop.

Select an option

Save Konfekt/077ed3d9c2dc2e40dbb9c4d06353edaa to your computer and use it in GitHub Desktop.
Swap Win+Tab and Alt+Tab on Windows with Autohotkey v2
; Swap Alt+Tab and Win+Tab
; From https://www.autohotkey.com/boards/viewtopic.php?style=19&p=548067&sid=dfc532a1b55a0d25862c8ee98674e0db#p548067
#HotIf WinActive("ahk_class XamlExplorerHostIslandWindow")
*!Tab::Send("{Alt Down}{Right}")
~*Alt Up::Send("{Enter}")
#HotIf
*!Tab::#Tab
; From https://www.autohotkey.com/docs/v2/Hotkeys.htm#AltTabWindow
LWin & Tab::AltTab
; LWin & Shift & Tab::ShiftAltTab
@GHJayce
Copy link

GHJayce commented Dec 9, 2024

cool!!

@Konfekt
Copy link
Author

Konfekt commented Dec 9, 2024

Thanks! It helps me not tripping up between Awesome WM and Windows VM; what seems hard though is remapping Alt+Shift+Tab; I gave up on it. Suggestions welcome.

@GHJayce
Copy link

GHJayce commented Dec 9, 2024

It helps me to have a switching window experience like mac when using windows. which is perfect. Thank you, bro;
Perhaps you could try achieving the desired effect with other mapping tools or combinations, such as PowerToys and SharpKeys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment