This setup will let you change the name of the current space by using a keyboard shortcut.
- Registered version of TotalSpaces2
- CocoaDialog
- totalspaces2 ruby gem
- BetterTouchTool
- Install and register a copy of TotalSpaces2
- Download and install CocoaDialog from http://mstratman.github.io/cocoadialog/
- Install totalspaces2 ruby gem by entering the following to the Terminal:
sudo gem install totalspaces2
- Install BetterTouchTool (or other alternative that you can configure to run commands using keyboard shortcuts).
- Download change-space-name.rb from this gist and place it in your ~/bin directory.
- Make the change-space-name.rb script executable by running
chmod +x ~/bin/change-space-name.rb
in the Terminal. - Edit ~/bin/change-space-name.rb and change line 5 to point to your installed CocoaDialog
path_to_cocoa_dialog = "/Volumes/Macintosh SSD/Applications/CocoaDialog.app/Contents/MacOS/CocoaDialog"
- Open up BetterTouchTool Preferences, select Keyboard settings, select Global application and click Add New Shortcut. Define a keyboard shortcut (I use Ctrl+Option+Command+R) and change Predefined Action to "Execute Terminal Command". In the popup dialog enter
~/bin/change-space-name.rb
Hit your predefined keyboard shortcut and enter the desired name for the current space. Profit!
By using HyperSwitch (https://bahoom.com/hyperswitch) you can limit cmd + tab to list only those windows that are present on the current space.