I am writing a simple break / anti-RSI program in Linux (Ubuntu) in Python. I asked similar questions about locking the keypad ( How do I lock the keypad to prevent other keystrokes from being sent to X11 / Linux / Gnome? And Releasing all keys after disabling the keyboard in X11 / Linux using xinput? ) And someone suggested ( stack overflow). site / questions / 1414169 / ... ) to capture keyboard focus would be a better way. However, I am new to X11 programming. How do I do this in Python? (Suppose I have python-xlib or everything that was installed, I can also install something from pypi or apt).
How do you make a simple X11 application that will capture keyboard focus (even if another window is currently focused). The user should not have the possibility of alt-tab or alt-f4 (i.e. there is no way out). However, it should be possible to “release” this “scramble” later or at any time.
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/1414982/More articles:The program does not start when using OpenCV in C ++ to stream video from the camera - c ++https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1414978/sql-server-rows-to-columns&usg=ALkJrhj4bEi7voUFcjG9vwHkkgcYZ-Oi0gOn iOS, how are CALayer bitmaps (CGImage objects) displayed on a graphics card? - iosIn OpenERP, how to get SQL to start when a module is installed? - openerpFabric name extension wants fabfile - pythonHas anyone else seen an error with web browsing HTC Flyer (hardware acceleration) or found a fix? - androidWriting String Data to MemoryMappedFile - c #Threejs / WebGL: The most efficient way for cubes? - three.jsSetting up external libraries as Glassfish modules - javaThe best way to control EventListener on a large-scale application in actionscript and Flex - garbage-collectionAll Articles