I'm searching for the possibility to execute a shell script or command based on idle time in the bash shell.
As an example, if I'm in a SSH session to a server of mine and after X minutes of inactivity in the terminal, I want a command to start a desired program like cmatrix, and when I come back and press a key I will get back where I left.
top– totti May 07 '13 at 09:48cmatrixor whatever all the time, but with anice --adjustment=17low scheduling priority? Seeman nice. Then, when you do something interactive, it will have a normal (0) scheduling priority and take over. – waltinator Aug 24 '15 at 03:36