half-baked re-implementation of the major parts of sdorfehs in Hammerspoon
1# spoonfish
2
3A half-baked re-implementation of the major parts of
4[sdorfehs](https://github.com/jcs/sdorfehs)
5in
6[Hammerspoon](https://www.hammerspoon.org/).
7
8## Usage
9
10Fetch spoonfish:
11
12 cd ~/.hammerspoon
13 git clone https://github.com/jcs/spoonfish.git
14
15Then add it to your ~/.hammerspoon/init.lua script, along with any startup
16configuration/commands:
17
18 local spoonfish = require("spoonfish/init")
19
20 spoonfish.apps_to_watch = {
21 "^" .. spoonfish.terminal,
22 "^Firefox",
23 "^Music",
24 "^Photos",
25 "^Xcode",
26 "^Android Studio",
27 }
28 table.insert(spoonfish.windows_to_ignore, "Extension: (Open in Browser)")
29
30 spoonfish.start()
31
32 local cs = hs.spaces.activeSpaceOnScreen()
33 spoonfish.frame_vertical_split(cs, 1)
34 spoonfish.frame_horizontal_split(cs, 2)
35 spoonfish.frame_focus(cs, 1, true)
36
37## Screenshot
38
39[](https://deskto.ps/u/jcs/d/ulofmj)