Projects · Tools & libraries
X11 Mic Monitor
A small python program for X11, which plays back a recording of the current microphone input with a bit of delay. Used for testing how my voice sounds before I say something.
root = x11.XDefaultRootWindow(dpy) bits = (ctypes.c_ubyte * 3)() for evtype in (XI_RAW_BUTTON_PRESS, XI_RAW_BUTTON_RELEASE): bits[evtype >> 3] |= 1 << (evtype & 7) mask = XIEventMask(XI_ALL_MASTER_DEVICES, len(bits), bits) xi.XISelectEvents(dpy, root, ctypes.byref(mask), 1) any_modifier = XIGrabModifiers(XI_ANY_MODIFIER, 0)
A simple project I've quickly made that I use for testing how my voice sounds to other people before I actually say anything in games.