Automatically hide apps that are out of focus.
Download: https://github.com/adammillerio/Spoons/raw/main/Spoons/Carrier.spoon.zip
This uses a hs.window.filter to detect windows that have gone out of focus. Then, if they are configured to be "swept" in the apps config, they will be automatically hidden if they remain out of focus after sweepCheckInterval (default 15 seconds).
README with example usage: README.md
| Signature | Carrier.apps |
|---|---|
| Type | Variable |
| Description | Table containing each application's name and it's desired configuration. The |
| Source | Source/Carrier.spoon/init.lua line 27 |
| Signature | Carrier.carryApps |
|---|---|
| Type | Variable |
| Description | Table containing the name of every app to carry on space change. |
| Source | Source/Carrier.spoon/init.lua line 51 |
| Signature | Carrier.carryDelay |
|---|---|
| Type | Variable |
| Description | Time in seconds to wait before carrying windows after space change. Default 5 seconds. |
| Source | Source/Carrier.spoon/init.lua line 56 |
| Signature | Carrier.carryDelayTimer |
|---|---|
| Type | Variable |
| Description | Any running hs.timer instance for a delayed carry, if enabled. |
| Source | Source/Carrier.spoon/init.lua line 61 |
| Signature | Carrier.logger |
|---|---|
| Type | Variable |
| Description | Logger object used within the Spoon. Can be accessed to set the default log |
| Source | Source/Carrier.spoon/init.lua line 35 |
| Signature | Carrier.logLevel |
|---|---|
| Type | Variable |
| Description | Carrier specific log level override, see hs.logger.setLogLevel for options. |
| Source | Source/Carrier.spoon/init.lua line 41 |
| Signature | Carrier.spaceWatcher |
|---|---|
| Type | Variable |
| Description | hs.spaces.watcher instance used for monitoring for space changes. |
| Source | Source/Carrier.spoon/init.lua line 46 |
| Signature | Carrier:init() |
|---|---|
| Type | Method |
| Description | Spoon initializer method for Carrier. |
| Parameters |
|
| Returns |
|
| Source | Source/Carrier.spoon/init.lua line 66 |
| Signature | Carrier:start() |
|---|---|
| Type | Method |
| Description | Spoon start method for Carrier. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/Carrier.spoon/init.lua line 116 |
| Signature | Carrier:stop() |
|---|---|
| Type | Method |
| Description | Spoon stop method for Carrier. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/Carrier.spoon/init.lua line 154 |