Simple window movement and resizing, focusing on half- and third-of-screen sizes
Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowHalfsAndThirds.spoon.zip
Signature | WindowHalfsAndThirds.clear_cache_after_seconds |
---|---|
Type | Variable |
Description | We don't want our undo frame cache filling all available memory. Let's clear it after it hasn't been used for a while. |
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 77 |
Signature | WindowHalfsAndThirds.defaultHotkeys |
---|---|
Type | Variable |
Description | Table containing a sample set of hotkeys that can be assigned to the different operations. |
Notes |
|
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 22 |
Signature | WindowHalfsAndThirds.logger |
---|---|
Type | Variable |
Description | Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon. |
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 17 |
Signature | WindowHalfsAndThirds.use_frame_correctness |
---|---|
Type | Variable |
Description | If |
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 72 |
Signature | WindowHalfsAndThirds:bindHotkeys(mapping) |
---|---|
Type | Method |
Description | Binds hotkeys for WindowHalfsAndThirds |
Parameters |
|
Returns |
|
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 416 |
Signature | WindowHalfsAndThirds:center(win) |
---|---|
Type | Method |
Description | Center window on screen |
Parameters |
|
Returns |
|
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 350 |
Signature | WindowHalfsAndThirds:larger(win) |
---|---|
Type | Method |
Description | Make win larger than its current size |
Parameters |
|
Returns |
|
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 368 |
Signature | WindowHalfsAndThirds:leftHalf(win) |
---|---|
Type | Method |
Description | Resize to the left half of the screen. |
Parameters |
|
Returns |
|
Notes |
|
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 268 |
Signature | WindowHalfsAndThirds:smaller(win) |
---|---|
Type | Method |
Description | Make win smaller than its current size |
Parameters |
|
Returns |
|
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 392 |
Signature | WindowHalfsAndThirds:toggleMaximized(win) |
---|---|
Type | Method |
Description | Toggle win between its normal size, and being maximized |
Parameters |
|
Returns |
|
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 313 |
Signature | WindowHalfsAndThirds:undo(win) |
---|---|
Type | Method |
Description | Undo window size changes for win if there've been any in WindowHalfsAndThirds.clear_cache_after_seconds |
Parameters |
|
Returns |
|
Source | Source/WindowHalfsAndThirds.spoon/init.lua line 336 |