For iTerm users, there's a built-in feature that works very well: https://www.iterm2.com/documentation-status-bar.html