Last active
September 23, 2015 14:17
-
-
Save sebald/3ec50b635228e196c443 to your computer and use it in GitHub Desktop.
Autohotkey Script to have OSX-like Keyboard Shortcuts on Windows. User in conjunction with https://github.com/samartzidis/WinA1314 (makes FN key work!)
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
; CMD+TAB -> Application Switching | |
<#Tab::AltTab | |
!Tab::return | |
; Remap <> and ^° | |
;SC029::Send {<} | |
;+SC029::Send {>} | |
;$<::Send {^} | |
;+$<::Send {°} ;doesnt work | |
; Remap parenthesis {[]}! | |
RAlt & 5::Send {[} | |
RAlt & 6::Send {]} | |
RAlt & 8::Send {{} | |
RAlt & 9::Send {}} | |
; Remap ~, @ and | | |
RAlt & n::Send {~} | |
RAlt & 7::Send | | |
RAlt & l::Send @ | |
;Mimics command-q and command-w behaviour to close windows | |
;note these had to be disabled below for the command to ctrl key remaps | |
#w::^F4 | |
#q::!F4 | |
; Cursor Movement | |
LWin & Left::SendInput {Home} | |
LWin & Right::SendInput {End} | |
#+Left::SendInput +{Home} | |
#+Right::SendInput +{End} | |
!Left::SendInput ^{Left} | |
!Right::SendInput ^{Right} | |
!+Left::SendInput ^+{Left} | |
!+Right::SendInput ^+{Right} | |
; Disable unmodified WinKey | |
LWin::return | |
; For VS Code Alt+Strg + Up/Down creates a new cursor | |
LWin & Down::SendInput ^{Down} | |
LWin & Up::SendInput ^{Up} | |
; Remap Win + Space to Ctrl + Space | |
LWin & Space::SendInput ^{Space} | |
; Keep Ctrl + Left Mouse ... | |
LWin & LButton::SendInput ^{Click} | |
; Replace CTRL+<Key> with WIN+<Key> | |
#a::^a | |
#b::^b | |
#c::^c | |
#d::^d | |
;#e::^e | |
;following won't remap using the normal method | |
#f::Send {LCtrl down}{f}{LCtrl up} | |
#g::^g | |
#h::^h | |
#i::^i | |
#j::^j | |
#k::^k | |
;#l::Send {LCtrl down}{l}{LCtrl up} ;disabled, I like winkey-L | |
#m::^m | |
#n::^n | |
#o::^o | |
#p::^p | |
;#q::^q ;disabled --remapped to alt-F4 instead | |
#r::^r | |
#s::^s | |
#t::^t | |
#u::^u | |
#v::^v | |
;#w::^w ;disabled --remapped to ctrl-F4 instead | |
#x::^x | |
#y::^y | |
#z::^z | |
#1::^1 | |
#2::^2 | |
#3::^3 | |
#4::^4 | |
#5::^5 | |
#6::^6 | |
#7::^7 | |
#8::^8 | |
#9::^9 | |
#0::^0 | |
; Volume Control | |
F10::Send {Volume_Mute} | |
F11::Send {Volume_Down} | |
F12::Send {Volume_Up} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment