Answers to: Prioritise X applications with focushttp://linuxexchange.org/questions/2784/prioritise-x-applications-with-focus<p>Is there a way to prioritise X applications with focus, preferably both in terms of CPU and I/O?</p> <p>Something like all X applications are <code>nice</code>d and <code>ionice</code>d down in priority, but when they gain focus they get <code>nice</code>d and <code>ionice</code>d back up to normal levels.</p> <p>I don't want to reinvent the wheel, so I was hoping someone had already developed an application that does this.</p>enThu, 16 Feb 2012 14:25:34 -0500Answer by Ronhttp://linuxexchange.org/questions/2784/prioritise-x-applications-with-focus/2785<p>I have not heard of something like this, so I know of no such software program, but that doesn't mean it can't be done, and without re-inventing the wheel either.</p> <p>I would start out by looking at a bash script that would look at certain stats like like PID, CPU Time, I/), all of which are dynamic, and then re-order them based your specific criteria. You'll want to run the bash script as a cron job.</p>RonThu, 16 Feb 2012 14:25:34 -0500http://linuxexchange.org/questions/2784/prioritise-x-applications-with-focus/2785