This script does this:
Note that the screenshots in the OP are outdated, my dashboard looks like this with the script: