Last active
December 12, 2016 18:59
-
-
Save justonia/caf8c8a794d5252e8dbc149d4578631d to your computer and use it in GitHub Desktop.
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
Windows Registry Editor Version 5.00 | |
; Add run as administrator to the menu for autohotkey scripts | |
; howtogeek.com | |
[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\runas\Command] | |
@="\"C:\\Program Files\\AutoHotkey\\AutoHotkey.exe\" \"%1\" %*" | |
"IsolatedCommand"="\"C:\\Program Files\\AutoHotkey\\AutoHotkey.exe\" \"%1\" %*" |
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
;----------------------------------------- | |
; Mac keyboard to Windows Key Mappings | |
;========================================= | |
; -------------------------------------------------------------- | |
; NOTES | |
; -------------------------------------------------------------- | |
; ! = ALT | |
; ^ = CTRL | |
; + = SHIFT | |
; # = WIN | |
; | |
; Debug action snippet: MsgBox You pressed Control-A while Notepad is active. | |
#InstallKeybdHook | |
#SingleInstance force | |
SetTitleMatchMode 2 | |
SendMode Input | |
; -------------------------------------------------------------- | |
; media/function keys all mapped to the right option key | |
; -------------------------------------------------------------- | |
;RAlt & F7::SendInput {Media_Prev} | |
;RAlt & F8::SendInput {Media_Play_Pause} | |
;RAlt & F9::SendInput {Media_Next} | |
;F10::SendInput {Volume_Mute} | |
;F11::SendInput {Volume_Down} | |
;F12::SendInput {Volume_Up} | |
; swap left command/windows key with left alt | |
LWin::LAlt | |
;LAlt::LWin ; add a semicolon in front of this line if you want to disable the windows key | |
; Eject Key | |
;F20::SendInput {Insert} | |
; F13-15, standard windows mapping | |
;F13::SendInput {PrintScreen} | |
;F14::SendInput {ScrollLock} | |
;F15::SendInput {Pause} | |
;F16-19 custom app launchers, see http://www.autohotkey.com/docs/Tutorial.htm for usage info | |
;F16::Run http://twitter.com | |
;F17::Run http://tumblr.com | |
;F18::Run http://www.reddit.com | |
;F19::Run https://facebook.com | |
; Disable a few windows shortcuts | |
#h:: | |
#b:: | |
; -------------------------------------------------------------- | |
; OS X system shortcuts | |
; -------------------------------------------------------------- | |
; Make Ctrl + S work with cmd (windows) key | |
#s::^s | |
; Selecting | |
#a::^a | |
; Copying | |
#c::^c | |
; Pasting | |
#v::^v | |
; Cutting | |
#x::^x | |
; Opening | |
#o::^o | |
; Finding | |
#f::Send ^f | |
; Undo | |
#z::^z | |
; Redo | |
#y::^y | |
; New tab | |
#t::^t | |
; close tab | |
#w::^w | |
; Close windows (cmd + q to Alt + F4) | |
#q::Send !{F4} | |
; Remap Windows + Tab to Alt + Tab. | |
Lwin & Tab::AltTab | |
; minimize windows | |
#m::WinMinimize,a | |
; -------------------------------------------------------------- | |
; OS X keyboard mappings for special chars | |
; -------------------------------------------------------------- | |
; Map Alt + L to @ | |
!l::SendInput {@} | |
; Map Alt + N to \ | |
+!7::SendInput {\} | |
; Map Alt + N to © | |
;!g::SendInput {©} | |
; Map Alt + o to ø | |
!o::SendInput {ø} | |
; Map Alt + 5 to [ | |
!5::SendInput {[} | |
; Map Alt + 6 to ] | |
!6::SendInput {]} | |
; Map Alt + E to € | |
;!e::SendInput {€} | |
; Map Alt + - to – | |
!-::SendInput {–} | |
; Map Alt + 8 to { | |
!8::SendInput {{} | |
; Map Alt + 9 to } | |
!9::SendInput {}} | |
; Map Alt + - to ± | |
!+::SendInput {±} | |
; Map Alt + R to ® | |
!r::SendInput {®} | |
; Map Alt + N to | | |
!7::SendInput {|} | |
; Map Alt + W to ∑ | |
;!w::SendInput {∑} | |
; Map Alt + N to ~ | |
;!n::SendInput {~} | |
; -------------------------------------------------------------- | |
; Custom mappings for special chars | |
; -------------------------------------------------------------- | |
;'#ö::SendInput {[} | |
;'#ä::SendInput {]} | |
;'^ö::SendInput {{} | |
;'^ä::SendInput {}} | |
; -------------------------------------------------------------- | |
; Application specific | |
; -------------------------------------------------------------- | |
; Google Chrome | |
#IfWinActive, ahk_class Chrome_WidgetWin_1 | |
; Show Web Developer Tools with cmd + alt + i | |
#!i::Send {F12} | |
; Show source code with cmd + alt + u | |
#!u::Send ^u | |
; Hot bar | |
#l::Send ^l | |
; Copying | |
#c::Send ^c | |
; Pasting | |
#v::Send ^v | |
#IfWinActive | |
; gVim | |
#IfWinActive, ahk_class Vim | |
LAlt::Control | |
#IfWinActive | |
; gVim | |
#IfWinActive, Microsoft Visual Studio | |
LAlt::Control | |
#IfWinActive | |
; Cmder | |
#IfWinActive, ahk_class VirtualConsoleClass | |
LAlt::Control | |
#b::Send ^b | |
#]::Send ^{Right} | |
#[::Send ^{Left} | |
#`::Send !1 | |
#IfWinActive | |
; Unity | |
#IfWinActive, ahk_class UnityContainerWndClass | |
; duplicate | |
#d::Send ^d | |
#c::Send ^c | |
; Pasting | |
#v::Send ^v | |
#IfWinActive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment