25 lines
958 B
Lua
25 lines
958 B
Lua
-- Needed until https://github.com/Hammerspoon/hammerspoon/issues/2478 is fixed
|
|
hs.configdir = os.getenv('HOME') .. '/.hammerspoon'
|
|
package.path = hs.configdir .. '/?.lua;' .. hs.configdir .. '/?/init.lua;' .. hs.configdir .. '/Spoons/?.spoon/init.lua;' .. package.path
|
|
|
|
hs.loadSpoon("SpoonInstall")
|
|
spoon.SpoonInstall.use_syncinstall = true
|
|
spoon.SpoonInstall:andUse("WindowScreenLeftAndRight")
|
|
spoon.SpoonInstall:andUse("WindowHalfsAndThirds")
|
|
spoon.SpoonInstall:andUse("Commander")
|
|
|
|
spoon.WindowScreenLeftAndRight:bindHotkeys(spoon.WindowScreenLeftAndRight.defaultHotkeys)
|
|
|
|
spoon.WindowHalfsAndThirds:bindHotkeys(spoon.WindowHalfsAndThirds.defaultHotkeys)
|
|
|
|
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "SPACE", function ()
|
|
spoon.Commander.show()
|
|
end)
|
|
|
|
hs.hotkey.bind({"ctrl"}, "t", function ()
|
|
hs.application.launchOrFocus("Alacritty")
|
|
end)
|
|
|
|
hs.hotkey.bind({"cmd", "alt"}, ",", function ()
|
|
hs.application.launchOrFocus("System Preferences")
|
|
end)
|