Skip to content

Instantly share code, notes, and snippets.

@Anderson-RC
Anderson-RC / init.lua
Last active October 30, 2025 14:17
Hammerspoon-based fast Virtual Desktop (Spaces) cycling.
--[[
--- HAMMERSPOON FAST SPACE CYCLER ---
This script provides instant, monitor-aware, and visually-ordered "next" and
"previous" space/desktop switching. It works by simulating the fast Ctrl+<Number>
shortcuts instead of the slow, native Cmd+shift+arrow slide animation.
--- INSTALLATION ---
1. Download and install Hammerspoon from: https://www.hammerspoon.org/
2. Open Hammerspoon. It will ask for Accessibility permissions.