hs.layout
Window layout manager
This extension allows you to trigger window placement/sizing to a number of windows at once
API Overview
- Constants - Useful values which cannot be changed
- Functions - API calls offered directly by the extension
API Documentation
Constants
left25
| Signature | hs.layout.left25 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the left 25% of a screen |
| Source | extensions/layout/layout.lua line 14 |
left30
| Signature | hs.layout.left30 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the left 30% of a screen |
| Source | extensions/layout/layout.lua line 19 |
left50
| Signature | hs.layout.left50 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the left 50% of a screen |
| Source | extensions/layout/layout.lua line 24 |
left70
| Signature | hs.layout.left70 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the left 70% of a screen |
| Source | extensions/layout/layout.lua line 29 |
left75
| Signature | hs.layout.left75 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the left 75% of a screen |
| Source | extensions/layout/layout.lua line 34 |
maximized
| Signature | hs.layout.maximized |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy all of a screen |
| Source | extensions/layout/layout.lua line 64 |
right25
| Signature | hs.layout.right25 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the right 25% of a screen |
| Source | extensions/layout/layout.lua line 39 |
right30
| Signature | hs.layout.right30 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the right 30% of a screen |
| Source | extensions/layout/layout.lua line 44 |
right50
| Signature | hs.layout.right50 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the right 50% of a screen |
| Source | extensions/layout/layout.lua line 49 |
right70
| Signature | hs.layout.right70 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the right 70% of a screen |
| Source | extensions/layout/layout.lua line 54 |
right75
| Signature | hs.layout.right75 |
|---|---|
| Type | Constant |
| Description |
A unit rect which will make a window occupy the right 75% of a screen |
| Source | extensions/layout/layout.lua line 59 |
Functions
apply
| Signature | hs.layout.apply(table[, windowTitleComparator]) |
|---|---|
| Type | Function |
| Description |
Applies a layout to applications/windows |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | extensions/layout/layout.lua line 69 |
© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.layout.html