Skip to content

Instantly share code, notes, and snippets.

@vanenshi
Created November 5, 2021 17:36
Show Gist options
  • Save vanenshi/e16b3c17f5f701073c7cb9ee93f22092 to your computer and use it in GitHub Desktop.
Save vanenshi/e16b3c17f5f701073c7cb9ee93f22092 to your computer and use it in GitHub Desktop.
My Global Shortcuts On Windows (10/11)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
#SingleInstance
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetCapsLockState, AlwaysOff
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Media Keys
+^!Left::Send {Media_Prev}
+^!Right::Send {Media_Next}
+^!Up::Send {Media_Play_Pause}
^#PgUp::Send {Volume_Up}
^#PgDn::Send {Volume_Down}
; cahnge layout
CapsLock::Send {Shift down}{Alt down}{Alt up}{Shift up}
+CapsLock::CapsLock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment