Skip to content

Instantly share code, notes, and snippets.

View JanOleA's full-sized avatar

Jan Ole Åkerholm JanOleA

View GitHub Profile
@JanOleA
JanOleA / esc.py
Last active May 3, 2020 09:19
Activating the real function of the ESC key.
from pynput.keyboard import Key, Listener
from playsound import playsound
import time
last_played = time.time() - 5
lctrl_pressed = False
filename = "esc_short.mp3"
print("ESC mode activated!")
print("Press the left 'ctrl' key and then the right 'ctrl' key right after to exit.")

Keybase proof

I hereby claim:

  • I am janolea on github.
  • I am janolea (https://keybase.io/janolea) on keybase.
  • I have a public key ASB8grxRb_fy2ypSvWbzRLqhm7JbCFLHdmGUPM73wUFEiQo

To claim this, I am signing this object: