How to show the current TotalSpaces space name in the menu bar
May 04, 2020
TotalSpaces is great! One flaw is you can't put the name of the current space in the menu bar. Only the number. Here's a workaround, possible because it has an API!
- Install the ruby gem
sudo gem install totalspaces2
- Install TextBar
- Set up a TextBar menu item
ruby -r'totalspaces2' -e 'print TotalSpaces2.name_for_space(TotalSpaces2.current_space)'
- no icon
- command-click drag it to be to the right of the TotalSpaces menu
Tada!
John Bachir's Code Blog