awesome-hammerspoon is my configuration for Hammerspoon. It has highly modal-based, vim-style keybindings, provides some functionality like desktop widgets, window management, application launcher, instant search, aria2 frontend ... etc.
Install Hammerspoon first.
git clone https://github.com/ashfinal/awesome-hammerspoon.git ~/.hammerspoon
Reload the configutation.
cd ~/.hammerspoon && git pull
How to use
Just press opt, plus A or C or R… to start. If need help, press tab to toggle the keybindings cheatsheet.
Press opt + ? to toggle the help panel, which will show all opt related keybindings.
These screenshots demostrate what awesome-hammerspoon is capable of. Learn more about built-in Spoons.
Window manpulation ⌥ + R
Search something ⌥ + G
aria2 Frontend ⌥ + D
You need to run aria2 with RPC enabled before using this. Config aria2 host and token in
~/.hammerspoon/private/config.lua, then you're ready to go.
hsaria2_host = "http://localhost:6800/jsonrpc" -- default host hsaria2_secret = "token" -- YOUR OWN SECRET
cp ~/.hammerspoon/config-example.lua ~/.hammerspoon/private/config.lua
Then modify the file
hspoon_listto decide which Spoons (a distributing format of Hammerspoon module) to be loaded. There are 15 built-in Spoons, learn about them at here.
There are more Spoons at official spoon repository (you may need a little config before using them).
~/.hammerspoon/private/config.luafor more details.
cmd + ctrl + shift + r to reload the configuration.
Improve existing Spoons
A "Spoon" is just a directory, right-click on it -> "Show Package Contents".
Feel free to file issues or open PRs.
Create new Spoons
Some resources you may find helpful: