Windows manipulation
Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WinWin.spoon.zip
| Signature | WinWin.gridparts |
|---|---|
| Type | Variable |
| Description | An integer specifying how many gridparts the screen should be divided into. Defaults to 30. |
| Source | Source/WinWin.spoon/init.lua line 20 |
| Signature | WinWin:centerCursor() |
|---|---|
| Type | Method |
| Description | Center the cursor on the focused window. |
| Parameters |
|
| Returns | |
| Source | Source/WinWin.spoon/init.lua line 190 |
| Signature | WinWin:moveAndResize(option) |
|---|---|
| Type | Method |
| Description | Move and resize the focused window. |
| Parameters |
|
| Returns | |
| Source | Source/WinWin.spoon/init.lua line 85 |
| Signature | WinWin:moveToScreen(direction) |
|---|---|
| Type | Method |
| Description | Move the focused window between all of the screens in the |
| Parameters |
|
| Returns | |
| Source | Source/WinWin.spoon/init.lua line 145 |
| Signature | WinWin:stepMove(direction) |
|---|---|
| Type | Method |
| Description | Move the focused window in the |
| Parameters |
|
| Returns | |
| Source | Source/WinWin.spoon/init.lua line 25 |
| Signature | WinWin:stepResize(direction) |
|---|---|
| Type | Method |
| Description | Resize the focused window in the |
| Parameters |
|
| Returns | |
| Source | Source/WinWin.spoon/init.lua line 55 |
| Signature | WinWin:undo() |
|---|---|
| Type | Method |
| Description | Undo the last window manipulation. Only those "moveAndResize" manipulations can be undone. |
| Parameters |
|
| Returns | |
| Source | Source/WinWin.spoon/init.lua line 173 |