This afternoon, I knocked together a simple profitability auto-switcher that works with nvOC and NiceHash:
https://gitlab.com/salfter/nvoc-nicehash-switcherIt might also work if you're mining elsewhere, though profitability is determined by NiceHash (as exposed through their API). It's a Python script that gathers information about what's profitable and calls shell scripts to reconfigure overclocking settings and launch miners on a per-algorithm basis. It replaces oneBash for normal operation; oneBash is only needed for initial setup or to add/remove GPUs (it manages /etc/X11/xorg.conf).
Nice work

I will integrate this into the next oneBash / v0018.
I will keep your default BTC address and ensure it is clear you implemented the instantaneous profit switching algorithm.
I do think with when using different algos in makes sense to have different clocks; however I don't think the settings for those should be spread out over a bunch of different bash files.
I will bring all the settings inside oneBash and make a:
SALFTER_NICEHASH_PROFIT_SWITCHING="YES" YES / NO switch
Using your implementation; it should only require a few modifications to implement other targets such as 'lowest difficulty out of a given set of coins' and more.
Thanks for providing another tool to the community,

This is really amazing work.
wow.... genius!