Skip to content

mikemimik/WindowManager.spoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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" },
  }

About

Window manager for hammerspoon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages