Skip to content

Instantly share code, notes, and snippets.

@malfario
Last active April 12, 2019 12:12
Show Gist options
  • Save malfario/157c0a7da6fb494eed15dd6fddb6552e to your computer and use it in GitHub Desktop.
Save malfario/157c0a7da6fb494eed15dd6fddb6552e to your computer and use it in GitHub Desktop.
Autohotkey script to sleep display on Windows w/ `Ctrl-Shift+Eject` (ala macOS)
Sleep, 100 ; Avoid awakening display on releasing keys
^+CtrlBreak::PostMessage, 0x0112, 0xF170, % (i:=!i)?2:-1,, A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment