I'd like to write a little script to ask me what I'm doing at regular intervals, but I'd like it not to grab focus if I'm in the middle of writing an email or filling in a password. The two options I've come up with are (1) notify-send/pynotify which lets me pop up a notification bubble in the top right of my screen which is perfect, but can't seem to include a text entry field; and (2) zenity and similar which bring up a window with a text field, but steal focus when they do.
feedback
|
|
If in X, here is a post that contains a script monitors The important command is:
Naturally, you need to have | |||
|
feedback
|
|
Aha, xprintidle seems to be the answer to my woes. It tracks mouse movement as well as keyboard, but gives idle time in milliseconds so seems good enough. http://www.dtek.chalmers.se/~henoch/text/xprintidle.html
| |||
|
feedback
|