Created
October 26, 2014 14:39
-
-
Save Bad-ptr/954d98bfd2c010e061fb to your computer and use it in GitHub Desktop.
python, libx11, switch off caps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from ctypes import * | |
X11 = cdll.LoadLibrary("libX11.so.6") | |
display = X11.XOpenDisplay(None) | |
X11.XkbLockModifiers(display, c_uint(0x0100), c_uint(2), c_uint(0)) | |
X11.XCloseDisplay(display) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment