Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.13 KB

File metadata and controls

43 lines (33 loc) · 1.13 KB

WindowManager.spoon

Window manager for hammerspoon

Installation

In order for hammerspoon to know of this Spoon you must install it to the hammerspoon configuration directory. This is usually ~/.hammerspoon on most systems.

git clone git@github.com:mikemimik/WindowManager.spoon.git ~/.hammerspoon/Spoons/

Usage

In your init.lua file for hammerspoon you can add the following lines:

WindowManager = hs.loadSpoon("WindowManager")

-- WindowManager Config
-- Use custom key bindings by passing them into this function
WindowManager:bindHotKeys({})
-- Initialise this Spoon with the following function
WindowManager:start()

Default Keybindings

  local defaults = {
    moveLeft = { {"cmd", "alt"}, "left" },
    moveLeftTop = { {"cmd", "ctrl", "shift"}, "left" },
    moveLeftBottom = { {"cmd", "ctrl"}, "left" },
    moveRight = { {"cmd", "alt"}, "right" },
    moveRightTop = { {"cmd", "ctrl", "shift"}, "right" },
    moveRightBottom = { {"cmd", "ctrl"}, "right" },
    moveCenter = { {"cmd", "alt"}, "c" },
    moveFull = { {"cmd", "alt"}, "f" },
    undo = { {"cmd", "ctrl"}, "u" },
  }