You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 12, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+30-2
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,18 @@ I make no promises that these will work for you or work at all with any, past, c
9
9
10
10
### Installation
11
11
12
-
An early release version of just this module is included in the repository as the file `spaces.tar.gz` file in the spaces subdirectory. You can install it by downloading the file and expanding it in your `~/.hammerspoon/` directory with `tar -xzf spaces.tar.gz`.
12
+
Compiled versions of this module can be found in the releases. You can download the release and install it by expanding it in your `~/.hammerspoon/` directory (or any other directory in your `package.path` and `package.cpath` search paths):
13
+
14
+
~~~sh
15
+
cd~/.hammerspoon
16
+
tar -xzf ~/Downloads/spaces-vX.Y.tar.gz # or wherever your downloads are saved
17
+
~~~
13
18
14
19
If this doesn't work for you, or you want to build the latest and greatest, follow the directions below:
15
20
16
21
This does require that you have XCode or the XCode Command Line Tools installed. See the App Store application or https://developer.apple.com to install these if necessary.
$ [HS_APPLICATION=/Applications] [PREFIX=~/.hammerspoon] make install
@@ -31,6 +36,8 @@ In either case, if you are upgrading over a previous installation of this module
31
36
spaces=require("hs._asm.undocumented.spaces")
32
37
~~~
33
38
39
+
- - -
40
+
34
41
### Module Functions
35
42
36
43
~~~lua
@@ -118,6 +125,21 @@ Notes:
118
125
119
126
- - -
120
127
128
+
~~~lua
129
+
spaces.layout() ->table
130
+
~~~
131
+
Returns a table of the user accessible spaces for, separated by Screen (Display), in order.
132
+
133
+
Parameters:
134
+
* None
135
+
136
+
Returns:
137
+
* a table whose keys are the screenUUID of the available screens. Each key's value is an array of the spaces on that display, list in the order in which they are currently arranged.
138
+
139
+
Notes:
140
+
* to determine which spaces are currently visible on each screen, use `hs._asm.undocumented.spaces.query(hs._asm.undocumented.spaces.masks.currentSpaces)`.
A Convienence method using `hs._asm.spaces.moveWindowToSpace` added to the `hs.window` object metatable to move the window specified by the `hs.window` object to the specified space.
355
379
380
+
* * *
381
+
356
382
### Sub-Modules
357
383
358
384
#### `spaces.debug`
@@ -361,6 +387,8 @@ This sub module contains functions which report a lot of detail about the spaces
361
387
362
388
If you do submit an issue to this repository, I may ask for information provided by one or more of these functions. Feel free to review the output and replace anything you think might be sensitive such as file paths or usernames with something like `*********`.
0 commit comments