Automate macOS with Hammerspoon Lua scripting. Window management, hotkeys, Spoons, and CLI integration.
- Window Management - Configure tiling hotkeys with ShiftIt Spoon
- Hotkey Binding - Create custom keyboard shortcuts
- Spoons - Load and configure Hammerspoon plugins
- CLI Integration - Use
hscommand for scripting and reloading - Configuration - Manage
~/.hammerspoon/init.lua
claude plugin install hammerspoon@plinde-pluginsThe skill activates automatically when:
- Working with
~/.hammerspoon/configuration - Writing Lua code for macOS automation
- Configuring window management hotkeys
- Using the
hsCLI command
Add to ~/.hammerspoon/init.lua:
require("hs.ipc")Then reload manually via menubar.
hs -c 'hs.reload()'hs.loadSpoon("ShiftIt")
spoon.ShiftIt:bindHotkeys({
left = { { 'ctrl', 'cmd' }, 'left' },
right = { { 'ctrl', 'cmd' }, 'right' },
maximum = { { 'ctrl', 'cmd' }, 'm' },
})- macOS
- Hammerspoon installed
MIT License
Peter Linde