-
-
Save a-chen/b7db7a78664a564b0fa453679176b320 to your computer and use it in GitHub Desktop.
Pok3r keybinds including media and volume controls
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
#CommentFlag // | |
#InstallKeybdHook | |
// Original Author: Jarvis Prestidge | |
// Enhanced by: Andrew Chen | |
// ========================= | |
// Pok3r Layout Marcos | |
// ========================= | |
// Includes Media Keys (Previous|Q, Play/Pause|W, Next|E) | |
// Includes Volume Control (Decrease|S, Increase|D, Mute/Unmute|F) | |
// Run with AutoHotKey | |
#Persistent | |
SetCapsLockState, AlwaysOff | |
// Capslock + jkli (left|j, down|k, right|l, up|i) | |
Capslock & j::Send {Blind}{Left DownTemp} | |
Capslock & j up::Send {Blind}{Left Up} | |
Capslock & k::Send {Blind}{Down DownTemp} | |
Capslock & k up::Send {Blind}{Down Up} | |
Capslock & i::Send {Blind}{Up DownTemp} | |
Capslock & i up::Send {Blind}{Up Up} | |
Capslock & l::Send {Blind}{Right DownTemp} | |
Capslock & l up::Send {Blind}{Right Up} | |
// Capslock + uohy (pgdown, pgup, home, end) | |
Capslock & h::SendInput {Blind}{Home Down} | |
Capslock & h up::SendInput {Blind}{Home Up} | |
Capslock & n::SendInput {Blind}{End Down} | |
Capslock & n up::SendInput {Blind}{End Up} | |
Capslock & u::SendInput {Blind}{PgUp Down} | |
Capslock & u up::SendInput {Blind}{PgUp Up} | |
Capslock & o::SendInput {Blind}{PgDn Down} | |
Capslock & o up::SendInput {Blind}{PgDn Up} | |
// Capslock + number keys equal function keys (F1-F10) | |
Capslock & 1::SendInput {Blind}{F1} | |
Capslock & 2::SendInput {Blind}{F2} | |
Capslock & 3::SendInput {Blind}{F3} | |
Capslock & 4::SendInput {Blind}{F4} | |
Capslock & 5::SendInput {Blind}{F5} | |
Capslock & 6::SendInput {Blind}{F6} | |
Capslock & 7::SendInput {Blind}{F7} | |
Capslock & 8::SendInput {Blind}{F8} | |
Capslock & 9::SendInput {Blind}{F9} | |
Capslock & 0::SendInput {Blind}{F10} | |
Capslock & -::SendInput {Blind}{F11} | |
Capslock & =::SendInput {Blind}{F12} | |
// Make Capslock & Esc equal ` | |
Capslock & Escape::SendInput {Blind}{``} | |
// Make Capslock & Backspace equivalent to delete | |
Capslock & BS::SendInput {Del Down} | |
Capslock & BS up::SendInput {Del Up} | |
// Make Capslock & semicolon (;) equivalent to end | |
Capslock & ;::SendInput {End Down} | |
Capslock & ; up::SendInput {End Up} | |
// Make Capslock & m equivalent to WinKey+m (show Desktop) | |
Capslock & m::SendInput {LWin Down}{m}{LWin UP} | |
// Make Capslock & Enter equivalent to Control+Enter | |
Capslock & Enter::SendInput {Ctrl down}{Enter}{Ctrl up} | |
// Make Capslock & Space equivalent to Control+Space | |
Capslock & Space::SendInput {Ctrl down}{Space}{Ctrl up} | |
// Make Capslock & p equivalent to PrintScreen | |
Capslock & p::SendInput {PrintScreen} | |
// Make CapsLock & y open the Windows Calculator | |
CapsLock & y::Run calc.exe | |
// Make CapsLock & c build a print statement for java | |
CapsLock & c::SendInput System.out.println()`;{Left 2} | |
// Alt + CapsLock + ; = Insert | |
//Capslock & SC027::SendInput {Insert} | |
// Make CapsLock & / build a comment construct for java | |
CapsLock & /::SendInput /*{Enter}{Space}*{Enter}*/{Up}{Space} | |
// Make CapsLock & q the previous media key | |
CapsLock & q::SendInput {Media_Prev} | |
// Make CapsLock & w the play/pause media key | |
CapsLock & w::SendInput {Media_Play_Pause} | |
// Make CapsLock & e the next media key | |
CapsLock & e::SendInput {Media_Next} | |
// Pok3r default is by increments of 2 | |
// CapsLock + s = volume - 2 | |
CapsLock & s::SoundSet -2 | |
// CapsLock + d = volume + 2 | |
CapsLock & d::SoundSet +2 | |
// CapsLock + f = toggle mute | |
CapsLock & f::SoundSet, +1, , mute | |
// Make CapsLock & Right Shift the application menu key | |
CapsLock & RShift::SendInput {AppsKey} | |
// Make Win Key + Capslock work like Capslock | |
#Capslock: | |
If GetKeyState("CapsLock", "T") = 1 | |
SetCapsLockState, AlwaysOff | |
Else | |
SetCapsLockState, AlwaysOn | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment