I have some medical problems with my haands, I have been to the doctor for this, and he says I need to type less. To help with this I created an application in python which notifies me if I type too much, the problem is that I can still go over the limit, and without noticing I sometimes go over the limit a lot. Therefore, I want to block all keyboard input when I type too much.
I found this thread: disable or lock mouse and keyboard in Python?. But as far as I can tell all of these awnsers only work on windows (at least, I haven't been able to get any of them to work on linux).
So my question is: how do I disable the keyboard through python on a linux system?