Last active
August 29, 2015 14:23
-
-
Save ludwig/7977c715537cb42e5103 to your computer and use it in GitHub Desktop.
My main AutoHotkey setup
This file contains 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
#NoEnv | |
#SingleInstance Force | |
; Some reading to do: | |
; https://www.autohotkey.com/docs/Hotkeys.htm | |
; https://www.autohotkey.com/docs/misc/Remap.htm | |
; https://www.autohotkey.com/docs/KeyList.htm | |
; Turn caps-lock into ctrl key (for vim & emacs) | |
CapsLock::Ctrl | |
; Mapping the Windows key to something else.. let's see what's actually useful | |
LWin::LAlt | |
RWin::RAlt | |
; Since we got rid of the Windows key, let's use the AppsKey for that instead | |
AppsKey::LWin | |
^AppsKey::Send, {AppsKey} | |
; Now let's do something about Alt+ArrowKeys ...make those work just like on the Mac | |
!Left::Send {Home} | |
!Right::Send {End} | |
!Up::Send {PgUp} | |
!Down::Send {PgDn} | |
; Mapping LAlt to Ctrl didn't work too well when trying to remap it to also allow AltTab | |
; However, setting these bindings explicitly still allows me to Alt+Tab normally | |
LAlt & a::Send ^a | |
LAlt & b::Send ^b | |
LAlt & c::Send ^c | |
LAlt & d::Send ^d | |
LAlt & e::Send ^e | |
LAlt & f::Send ^f | |
LAlt & g::Send ^g | |
LAlt & h::Send ^h | |
LAlt & i::Send ^i | |
LAlt & j::Send ^j | |
LAlt & k::Send ^k | |
LAlt & l::Send ^l | |
LAlt & m::Send ^m | |
LAlt & n::Send ^n | |
LAlt & o::Send ^o | |
LAlt & p::Send ^p | |
LAlt & q::Send ^q | |
LAlt & r::Send ^r | |
LAlt & s::Send ^s | |
LAlt & t::Send ^t | |
LAlt & u::Send ^u | |
LAlt & v::Send ^v | |
LAlt & w::Send ^w | |
LAlt & x::Send ^x | |
LAlt & y::Send ^y | |
LAlt & z::Send ^z | |
; Bring up the windows search menu (similar to Cmd+Space binding that brings up Spotlight on Mac) | |
LAlt & Space::Send {LWin down}s{LWin up} | |
; On the Mac, the bindings "Cmd+{" and "Cmd+}" are used to navigate tabs in Chrome. | |
LAlt & [::Send ^{PgUp} | |
LAlt & ]::Send ^{PgDn} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment