Rewrite toggle-bar script in bash
42