docs » MiroWindowsManager

With this script you will be able to move the window in halves and in corners using your keyboard and mainly using arrows. You would also be able to resize them by thirds, quarters, or halves.

Official homepage for more info and documentation: https://github.com/miromannino/miro-windows-manager

Download: https://github.com/miromannino/miro-windows-manager/raw/master/MiroWindowsManager.spoon.zip

API Overview

API Documentation

Variables

fullScreenSizes
Signature MiroWindowsManager.fullScreenSizes
Type Variable
Description

The sizes that the window can have in full-screen.

Notes
  • The sizes are expressed as dividend of the entire screen's size.
  • For example {1, 4/3, 2} means that it can be 1/1 (hence full screen), 3/4 and 1/2 of the total screen's size
Source Source/MiroWindowsManager.spoon/init.lua line 46
GRID
Signature MiroWindowsManager.GRID
Type Variable
Description

The screen's size using hs.grid.setGrid() This parameter is used at the spoon's :init()

Source Source/MiroWindowsManager.spoon/init.lua line 55
sizes
Signature MiroWindowsManager.sizes
Type Variable
Description

The sizes that the window can have.

Notes
  • The sizes are expressed as dividend of the entire screen's size.
  • For example {2, 3, 3/2} means that it can be 1/2, 1/3 and 2/3 of the total screen's size
Source Source/MiroWindowsManager.spoon/init.lua line 37

Methods

bindHotkeys
Signature MiroWindowsManager:bindHotkeys()
Type Method
Description

Binds hotkeys for Miro's Windows Manager

Parameters
  • mapping - A table containing hotkey details for the following items:
    • up: for the up action (usually {hyper, "up"})
    • right: for the right action (usually {hyper, "right"})
    • down: for the down action (usually {hyper, "down"})
    • left: for the left action (usually {hyper, "left"})
    • fullscreen: for the full-screen action (e.g. {hyper, "f"})
Returns
Examples
Source Source/MiroWindowsManager.spoon/init.lua line 144