Skip to content

Instantly share code, notes, and snippets.

@pixelchai
Last active May 4, 2020 21:53
Show Gist options
  • Save pixelchai/9aa2bf8bfa667c43ae3893c65381d8b5 to your computer and use it in GitHub Desktop.
Save pixelchai/9aa2bf8bfa667c43ae3893c65381d8b5 to your computer and use it in GitHub Desktop.
AutoHotKey script to mimic some i3 behaviour on Windows
; mod+shift+r or mod+r = reload this script
#+r::
#r::
Reload
return
; mod+shift+q = close active window
#+q::WinClose A
; mod+shift+enter = browser
#+Enter::Run chrome.exe
; mod+crl+shift+enter = browser incognito
#^+Enter::Run chrome.exe -incognito
; mod+enter = command line (with cwd %USERPROFILE%)
#Enter::Run cmd, %USERPROFILE%
; mod+f = fullscreen/unfulscreen
#f::
WinGet isMax, MinMax, A
if (isMax) {
WinRestore A
} else {
WinMaximize A
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment