私の[[🦉JINRAI]]の設定。
`~/.hammerspoon/init.lua`
```lua
local config = {
focus_border = {},
window_hints = {
hint = {
prefixOverrides = {
{
match = { bundleID = "md.obsidian", titleGlob = "*- minerva - Obsidian*" },
prefix = "M",
},
{
match = { bundleID = "com.google.Chrome" },
prefix = "E",
},
},
},
navigation = {
focusBack = {
key = "w",
},
direction = {
hints = {
keys = {
left = "h",
down = "j",
up = "k",
right = "l",
upLeft = "u",
upRight = "o",
},
},
},
spaces = {
prev = {
key = ",",
},
next = {
key = ".",
},
},
},
behavior = {
selection = {
swapWindowFrame = {
modifiers = { "shift" },
},
},
},
},
focus_back = {},
}
-- 開発用
-- hs.loadSpoon("Jinrai")
-- spoon.Jinrai:setup(config)
-- 配布用
hs.loadSpoon("SpoonInstall")
spoon.SpoonInstall.repos.jinrai = {
url = "https://github.com/tadashi-aikawa/jinrai",
desc = "JINRAI Spoon repository",
branch = "spoons",
}
spoon.SpoonInstall:andUse("Jinrai", {
repo = "jinrai",
fn = function(jinrai)
jinrai:setup(config)
end,
})
```