When the user's mouse is on the menu bar, scrolling will move through spaces. This script gives macOS one of my favorite features of Linux's GNOME Desktop Environment.
- Download and install Hammerspoon
brew install --cask hammerspoon
or https://github.com/Hammerspoon/hammerspoon/releases/latest
-
Enable Accessibility access for Hammerspoon
-
Click on the Hammerspoon icon on the menu bar and select open config
-
Paste the contents of
script.luainto the opened config file
https://github.com/VilktorK/Scroll-Through-Spaces-MacOS/releases/latest
-
Save the file and click on the hammerspoon icon again and select reload config
-
You can now scroll though spaces when the mouse hoveringover over the menu bar
-
This script uses the default shortcuts for moving spaces left and right, if you have changed the shortcuts in the settings you will have to modify the script to your new shortcuts
-
This script currently has no way of detecting fullscreen apps and will work even if the menu bar is not visible