Name and switch Mission Control spaces in the menu bar, with fullscreen support!
Download: Spacer.spoon.zip
README: README.md
Space names can be changed from the menubar by holding Alt while selecting the desired space to rename. These are persisted between launches via the hs.settings module.
A GUI based space "chooser" can be opened space_chooser hotkey (default cmd+space)
Current application can be put in fullscreen to the left of the current space via the toggle_fullscreen_window_to_left hotkey (default cmd+shift+f)
| Signature | Spacer.settingsKey |
|---|---|
| Type | Constant |
| Description | Key used for persisting space names between Hammerspoon launches via hs.settings. |
| Source | Source/Spacer.spoon/init.lua line 27 |
| Signature | Spacer.defaultHotkeys |
|---|---|
| Type | Variable |
| Description | Default hotkey to use for the space chooser and fullscreen |
| Source | Source/Spacer.spoon/init.lua line 37 |
| Signature | Spacer.delayedWindowClickTimer |
|---|---|
| Type | Variable |
| Description | hs.timer used in fullscreenWindowToLeft to perform a delayed left click. |
| Source | Source/Spacer.spoon/init.lua line 110 |
| Signature | Spacer.exitFullScreenKeystroke |
|---|---|
| Type | Variable |
| Description | Keystroke representing shortcut to exit a full screen application. Defaults to |
| Source | Source/Spacer.spoon/init.lua line 56 |
| Signature | Spacer.focusedSpace |
|---|---|
| Type | Variable |
| Description | int with the ID of the currently focused space. |
| Source | Source/Spacer.spoon/init.lua line 100 |
| Signature | Spacer.logger |
|---|---|
| Type | Variable |
| Description | Logger object used within the Spoon. Can be accessed to set the default log |
| Source | Source/Spacer.spoon/init.lua line 62 |
| Signature | Spacer.logLevel |
|---|---|
| Type | Variable |
| Description | Spacer specific log level override, see hs.logger.setLogLevel for options. |
| Source | Source/Spacer.spoon/init.lua line 68 |
| Signature | Spacer.orderedSpaceNames |
|---|---|
| Type | Variable |
| Description | Table with an ordered list of the space names, which is used when loading |
| Source | Source/Spacer.spoon/init.lua line 94 |
| Signature | Spacer.orderedSpaces |
|---|---|
| Type | Variable |
| Description | Table holding an ordered list of space IDs, which is then used to resolve |
| Source | Source/Spacer.spoon/init.lua line 88 |
| Signature | Spacer.spaceChooser |
|---|---|
| Type | Variable |
| Description | hs.chooser object representing the Space chooser. |
| Source | Source/Spacer.spoon/init.lua line 105 |
| Signature | Spacer.spaceNames |
|---|---|
| Type | Variable |
| Description | Table with key-value mapping of Space ID to it's user set name. |
| Source | Source/Spacer.spoon/init.lua line 83 |
| Signature | Spacer.spaceWatcher |
|---|---|
| Type | Variable |
| Description | hs.spaces.watcher instance used for monitoring for space changes. |
| Source | Source/Spacer.spoon/init.lua line 78 |
| Signature | Spacer.tilingMenuItem |
|---|---|
| Type | Variable |
| Description | Menu item for tiling window to the left. Set this according to your language. |
| Source | Source/Spacer.spoon/init.lua line 51 |
| Signature | Spacer.tilingMenuSection |
|---|---|
| Type | Variable |
| Description | Menu "section" which has tiling options. Set this according to your language. |
| Source | Source/Spacer.spoon/init.lua line 46 |
| Signature | Spacer:exitFullscreen(window) |
|---|---|
| Type | Method |
| Description | Exit fullscreen on window. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/Spacer.spoon/init.lua line 526 |
| Signature | Spacer:fullscreenWindowToLeft(app) |
|---|---|
| Type | Method |
| Description | Fullscreen app's focused window to the left of current space. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/Spacer.spoon/init.lua line 495 |
| Signature | Spacer:init() |
|---|---|
| Type | Method |
| Description | Spoon initializer method for Spacer. |
| Parameters |
|
| Returns |
|
| Source | Source/Spacer.spoon/init.lua line 600 |
| Signature | Spacer:start() |
|---|---|
| Type | Method |
| Description | Spoon start method for Spacer. Creates/starts menu bar item and space watcher. |
| Parameters |
|
| Returns |
|
| Source | Source/Spacer.spoon/init.lua line 614 |
| Signature | Spacer:stop() |
|---|---|
| Type | Method |
| Description | Spoon stop method for Spacer. Deletes menu bar item and stops space watcher. |
| Parameters |
|
| Returns |
|
| Source | Source/Spacer.spoon/init.lua line 659 |
| Signature | Spacer:toggleFullscreenWindowToLeft() |
|---|---|
| Type | Method |
| Description | Toggle the fullscreen state of current window to left of space. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/Spacer.spoon/init.lua line 458 |