How can I programmatically block user input for a given time?

Posted by black_puppydog on Ask Ubuntu See other posts from Ask Ubuntu or by black_puppydog
Published on 2012-10-02T03:39:44Z Indexed on 2012/10/02 3:55 UTC
Read the original article Hit count: 182

Filed under:
|

As a person working in computer science working offline to avoid facebook and thelike is not always (meaning hardly ever) possible for me since I mostly have to be online to work.

I have tried leechblock and similar things but the problem becomes that at some point I start making systems for myself to hack, which is kind of pointless if oyu have root.

I would very much like to try out the method described here. (Short version: reboot your PC every time finish a task or get bored with it)

Unlike for the author of this blog my work is mainly done not in screen sessions but in IDEs ans other not-so-fast-to-start-up stuff, meaning a full reboot including loading all my programs will take its time. So, the question is:

How can I block all user input and preferrably blank the screen for a given amount of time?

The idea would then be to have a keyboard shortcut to activate the script/program (which would probably also have to have root i guess?)

© Ask Ubuntu or respective owner

Related posts about lock-screen

Related posts about Productivity