modified xmrig
Hello, I'm not sure if you have modified the XMRIG to get the idle and max CPU stuff but I have found this modified XMRIG it doesn't only mine XMR but it does benchmark on each execution of miner and mines the most profitable coin then converts it to XMR in your wallet, CPU dependent: https://github.com/MoneroOcean/xmrig. Please have a look into this and consider adding it.