This commit is contained in:
Geoffrey Frogeye 2020-05-30 12:07:23 +02:00
parent 5e500da16b
commit 8d85bd63da
4 changed files with 7 additions and 71 deletions

View file

@ -41,6 +41,7 @@ def record_callback(reply):
if event.type in [X.KeyPress, X.KeyRelease]:
keysym = local_dpy.keycode_to_keysym(event.detail, 0)
print(KEY)
if keysym == KEY:
mute(event.type == X.KeyRelease)