Created
October 14, 2026 07:58
-
-
Save e-t-l/6790930cb9c074332d304977cba5aaec to your computer and use it in GitHub Desktop.
Close pinned Firefox tabs with Ctrl+ALt+W
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires AutoHotkey v2.0 | |
| SendMode "InputThenPlay" | |
| ; Close pinned tabs with Ctl+Alt+W | |
| ; FYI, it will briefly flash a context menu at the top of the screen. | |
| #HotIf WinActive("ahk_exe firefox.exe") | |
| ; ^w:: ; uncomment this line to make Ctrl+W close pinned tabs too | |
| ^!w:: { | |
| Send("+!f") | |
| WinWait "ahk_class MozillaDropShadowWindowClass" | |
| Send("c") | |
| } | |
| #HotIf |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requires installing AutoHotKey v2 from github.com/AutoHotkey or
winget install Autohotkey. Only works on Windows.