https://github.com/luokuning/spoons
Some Useful Spoons for Hammerspoon
https://github.com/luokuning/spoons
hammerspoon spoons
Last synced: about 1 year ago
JSON representation
Some Useful Spoons for Hammerspoon
- Host: GitHub
- URL: https://github.com/luokuning/spoons
- Owner: luokuning
- License: mit
- Created: 2019-12-28T13:49:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T10:25:38.000Z (over 6 years ago)
- Last Synced: 2025-04-09T21:49:17.256Z (about 1 year ago)
- Topics: hammerspoon, spoons
- Language: Lua
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Some Useful Spoons for Hammerspoon
Provide some useful Spoons. Clone the repository and double click the spoon you want to install.
## LaunchITerm2.spoon
Quick Launch or focus `iTerm2` through shortcut (default F12), and when press that shortcut again, quick focus previous application. Usage:
```lua
-- In your ~/.hammerspoon/init.lua
LaunchITerm2 = hs.loadSpoon('LaunchITerm2')
-- You can custom shortcut if F12 is not what you want
LaunchITerm2:bindHotKeys({
toggle={{'fn'}, 'F11'}
})
-- Start
LaunchITerm2:start()
-- Stop
LaunchITerm2:stop()
```