Getting up and running takes less than a minute!
- Install Hammerspoon:
brew cask install hammerspoon
- Install Luarocks package manager:
brew install lua
- Clone this repository:
cd ~/Development/Rice
git clone https://github.com/Braden1996/BradensPoon.git
- Install Lua dependencies locally via Luarocks:
cd BradensPoon
luarocks install --tree lua_modules penlight
- Run
Hammerspoon.app
and follow the prompts to enable Accessibility access for the app. - Click on the Hammerspoon menu bar icon 🔨 and choose
Open Config
from the menu. - Get the directory path of where you installed BradensPoon, e.g. run
pwd
after step 4. - Paste the following (into
~/.hammerspoon/init.lua
):
local yourPath = '/Users/braden/Development/Rice/BradensPoon/'
package.path = yourPath .. '?.lua;' .. package.path;
require('init')
- Replace the value of yourPath (e.g.
/Users/braden/Development/Rice/BradensPoon/
) with your directory path, as obtained in step 7. (Don't forget the trailing/
!) - Reload your Hammerspoon config.
Interested in fixing up some bugs, or developing awesome new features? Here are a few notes to help get you started:
Testing
As a standard, we try to maintain a strong coverage of tests for all code which isn't strickly coupled with Hammerspoon. To get up and running with tests, follow the steps below:
luarocks install -busted
- Execute all our tests:
busted -v