|
23 | 23 | "Constructor" : [ |
24 | 24 |
|
25 | 25 | ], |
26 | | - "doc" : "You need in namespace a table at `config.spaces`.\n`config.spaces` is a table that is passed to a chooser.\n\nYou can specify blocking of apps via a `whitelist`, `blacklist`, and you can\nsay what you want to have `launch` when you launch that space.\n\nA space with a `blacklist` will allow anything _but_ apps tagged with the\nblacklist tags, untagged apps, or apps with a whitelisted attribute.\n\nA space with a `whitelist` will allow **only** the apps tagged with tags in\nthe whitelist, untagged apps, or apps with a whitelisted attribute.\n\nThere is presently an interaction between the two where if an app is\nwhitelisted by a tag and blacklisted by a tag, whitelist wins.\n\nThe `launch` list tells the space to auto launch certain things at startup.\n\nOptionally, you can define a setup function at config.spaces.<key> that is\nrun when the space is started.\n\nOPTIONS:\n\nIf you are using toggl timer, putting anything in quotes will pass that as a\ncustom description to toggl. e.g. Design \"Working on jira ticket\" will match\na space named Design, but pass a custom description to your timer.\n\nIf you want a pomodoro countdown, add a colon followed by integers. e.g. :45\nwill count down 45 minutes, then play a musical cue and prompt you to choose\na new space.\n\n# Example:\n\nconfig.spaces = {\n text = \"Example\",\n subText = \"More about the example\",\n image = hs.image.imageFromAppBundle('foo.bar.com'),\n\n funcs = \"example\",\n\n launch = {\"table\", \"of\", \"tags\"},\n blacklist = {\"table\", \"of\", \"tags\"},\n == OR ==\n whitelist = {\"table\", \"of\", \"tags\"}\n\n togglProj = \"id of toggl project\",\n togglDescr = \"description of toggl timer\n\n intentRequired = true\n intentSuggestions = {}\n}\n\nconfig.funcs.example = {\n setup = function()\n hs.urlevent.openURL(\"http:\/\/hammerspoon.org\")\n end\n}\n\nThe goal is to get into another space, even when working from home.\n\nFuture expansions...\nDND status?\nCustom Desktop Background with prompts for focus, writing, code?\nMusical cues?", |
| 26 | + "doc" : "You need in namespace a table at `config.spaces`.\n`config.spaces` is a table that is passed to a chooser.\n\nYou can specify blocking of apps via a `whitelist`, `blacklist`, and you can\nsay what you want to have `launch` when you launch that space.\n\nA space with a `blacklist` will allow anything _but_ apps tagged with the\nblacklist tags, untagged apps, or apps with a whitelisted attribute.\n\nA space with a `whitelist` will allow **only** the apps tagged with tags in\nthe whitelist, untagged apps, or apps with a whitelisted attribute.\n\nThere is presently an interaction between the two where if an app is\nwhitelisted by a tag and blacklisted by a tag, whitelist wins.\n\nThe `launch` list tells the space to auto launch certain things at startup.\n\nOptionally, you can define a setup function at config.spaces.<key> that is\nrun when the space is started.\n\nOPTIONS:\n\nIf you are using toggl timer, putting anything in quotes will pass that as a\ncustom description to toggl. e.g. Design \"Working on jira ticket\" will match\na space named Design, but pass a custom description to your timer.\n\nIf you want a pomodoro countdown, add a colon followed by integers. e.g. :45\nwill count down 45 minutes, then play a musical cue and prompt you to choose\na new space.\n\n# Example:\n\nconfig.spaces = {\n text = \"Example\",\n subText = \"More about the example\",\n image = hs.image.imageFromAppBundle('foo.bar.com'),\n\n funcs = \"example\",\n\n launch = {\"table\", \"of\", \"tags\"},\n blacklist = {\"table\", \"of\", \"tags\"},\n == OR ==\n whitelist = {\"table\", \"of\", \"tags\"}\n\n togglProj = \"id of toggl project\",\n togglDesc = \"description of toggl timer\n\n intentRequired = true\n intentSuggestions = {}\n}\n\nconfig.funcs.example = {\n setup = function()\n hs.urlevent.openURL(\"http:\/\/hammerspoon.org\")\n end\n}\n\nThe goal is to get into another space, even when working from home.\n\nFuture expansions...\nDND status?\nCustom Desktop Background with prompts for focus, writing, code?\nMusical cues?", |
27 | 27 | "Method" : [ |
28 | 28 | { |
29 | 29 | "doc" : "Starts the application watcher that \"blocks\" applications.\n\nReturns:\n * self", |
30 | 30 | "stripped_doc" : [ |
31 | 31 | "Starts the application watcher that \"blocks\" applications.", |
32 | 32 | "" |
33 | | - ], |
34 | | - "parameters" : [ |
35 | | - |
36 | 33 | ], |
37 | 34 | "def" : "Headspace:start() -> table", |
| 35 | + "name" : "start", |
38 | 36 | "notes" : [ |
39 | 37 |
|
40 | 38 | ], |
|
44 | 42 | " * self" |
45 | 43 | ], |
46 | 44 | "desc" : "Starts the application watcher that \"blocks\" applications.", |
47 | | - "name" : "start" |
| 45 | + "parameters" : [ |
| 46 | + |
| 47 | + ] |
48 | 48 | }, |
49 | 49 | { |
50 | 50 | "doc" : "Kills the application watcher and any running timers.\n\nReturns:\n * self", |
51 | 51 | "stripped_doc" : [ |
52 | 52 | "Kills the application watcher and any running timers.", |
53 | 53 | "" |
54 | | - ], |
55 | | - "parameters" : [ |
56 | | - |
57 | 54 | ], |
58 | 55 | "def" : "Headspace:stop() -> table", |
| 56 | + "name" : "stop", |
59 | 57 | "notes" : [ |
60 | 58 |
|
61 | 59 | ], |
|
65 | 63 | " * self" |
66 | 64 | ], |
67 | 65 | "desc" : "Kills the application watcher and any running timers.", |
68 | | - "name" : "stop" |
| 66 | + "parameters" : [ |
| 67 | + |
| 68 | + ] |
69 | 69 | }, |
70 | 70 | { |
71 | 71 | "doc" : "Adds a device to USBObserver's watch list\n\nParameters:\n * configTable - A table containing the spaces and applications.-\n\nReturns:\n * self", |
72 | 72 | "stripped_doc" : [ |
73 | 73 | "Adds a device to USBObserver's watch list", |
74 | 74 | "" |
75 | 75 | ], |
76 | | - "parameters" : [ |
77 | | - " * configTable - A table containing the spaces and applications.-", |
78 | | - "" |
79 | | - ], |
80 | 76 | "def" : "Headspace:loadConfig(configTable) -> table", |
| 77 | + "name" : "loadConfig", |
81 | 78 | "notes" : [ |
82 | 79 |
|
83 | 80 | ], |
|
87 | 84 | " * self" |
88 | 85 | ], |
89 | 86 | "desc" : "Adds a device to USBObserver's watch list", |
90 | | - "name" : "loadConfig" |
| 87 | + "parameters" : [ |
| 88 | + " * configTable - A table containing the spaces and applications.-", |
| 89 | + "" |
| 90 | + ] |
91 | 91 | }, |
92 | 92 | { |
93 | 93 | "doc" : "Sets the toggl API key.\n\nParameters:\n * key - Your toggl API key as a string.\n\nReturns:\n * self", |
94 | 94 | "stripped_doc" : [ |
95 | 95 | "Sets the toggl API key.", |
96 | 96 | "" |
97 | 97 | ], |
98 | | - "parameters" : [ |
99 | | - " * key - Your toggl API key as a string.", |
100 | | - "" |
101 | | - ], |
102 | 98 | "def" : "Headspace:setTogglKey(key) -> table", |
| 99 | + "name" : "setTogglKey", |
103 | 100 | "notes" : [ |
104 | 101 |
|
105 | 102 | ], |
|
109 | 106 | " * self" |
110 | 107 | ], |
111 | 108 | "desc" : "Sets the toggl API key.", |
112 | | - "name" : "setTogglKey" |
| 109 | + "parameters" : [ |
| 110 | + " * key - Your toggl API key as a string.", |
| 111 | + "" |
| 112 | + ] |
113 | 113 | }, |
114 | 114 | { |
115 | 115 | "doc" : "Stops any running toggl timers", |
116 | 116 | "stripped_doc" : [ |
117 | 117 | "Stops any running toggl timers" |
118 | | - ], |
119 | | - "parameters" : [ |
120 | | - |
121 | 118 | ], |
122 | 119 | "def" : "Headspace.stopToggl() -> nil", |
| 120 | + "name" : "stopToggl", |
123 | 121 | "notes" : [ |
124 | 122 |
|
125 | 123 | ], |
|
129 | 127 |
|
130 | 128 | ], |
131 | 129 | "desc" : "Stops any running toggl timers", |
132 | | - "name" : "stopToggl" |
| 130 | + "parameters" : [ |
| 131 | + |
| 132 | + ] |
133 | 133 | }, |
134 | 134 | { |
135 | 135 | "doc" : "Launch an hs.chooser to select a new headspace.", |
136 | 136 | "stripped_doc" : [ |
137 | 137 | "Launch an hs.chooser to select a new headspace." |
138 | | - ], |
139 | | - "parameters" : [ |
140 | | - |
141 | 138 | ], |
142 | 139 | "def" : "Headspace.choose() -> nil", |
| 140 | + "name" : "choose", |
143 | 141 | "notes" : [ |
144 | 142 |
|
145 | 143 | ], |
|
149 | 147 |
|
150 | 148 | ], |
151 | 149 | "desc" : "Launch an hs.chooser to select a new headspace.", |
152 | | - "name" : "choose" |
| 150 | + "parameters" : [ |
| 151 | + |
| 152 | + ] |
153 | 153 | } |
154 | 154 | ], |
155 | 155 | "Command" : [ |
|
163 | 163 | "doc" : "Launch an hs.chooser to select a new headspace.", |
164 | 164 | "stripped_doc" : [ |
165 | 165 | "Launch an hs.chooser to select a new headspace." |
166 | | - ], |
167 | | - "parameters" : [ |
168 | | - |
169 | 166 | ], |
170 | 167 | "def" : "Headspace.choose() -> nil", |
| 168 | + "name" : "choose", |
171 | 169 | "notes" : [ |
172 | 170 |
|
173 | 171 | ], |
|
177 | 175 |
|
178 | 176 | ], |
179 | 177 | "desc" : "Launch an hs.chooser to select a new headspace.", |
180 | | - "name" : "choose" |
| 178 | + "parameters" : [ |
| 179 | + |
| 180 | + ] |
181 | 181 | }, |
182 | 182 | { |
183 | 183 | "doc" : "Adds a device to USBObserver's watch list\n\nParameters:\n * configTable - A table containing the spaces and applications.-\n\nReturns:\n * self", |
184 | 184 | "stripped_doc" : [ |
185 | 185 | "Adds a device to USBObserver's watch list", |
186 | 186 | "" |
187 | 187 | ], |
188 | | - "parameters" : [ |
189 | | - " * configTable - A table containing the spaces and applications.-", |
190 | | - "" |
191 | | - ], |
192 | 188 | "def" : "Headspace:loadConfig(configTable) -> table", |
| 189 | + "name" : "loadConfig", |
193 | 190 | "notes" : [ |
194 | 191 |
|
195 | 192 | ], |
|
199 | 196 | " * self" |
200 | 197 | ], |
201 | 198 | "desc" : "Adds a device to USBObserver's watch list", |
202 | | - "name" : "loadConfig" |
| 199 | + "parameters" : [ |
| 200 | + " * configTable - A table containing the spaces and applications.-", |
| 201 | + "" |
| 202 | + ] |
203 | 203 | }, |
204 | 204 | { |
205 | 205 | "doc" : "Sets the toggl API key.\n\nParameters:\n * key - Your toggl API key as a string.\n\nReturns:\n * self", |
206 | 206 | "stripped_doc" : [ |
207 | 207 | "Sets the toggl API key.", |
208 | 208 | "" |
209 | 209 | ], |
210 | | - "parameters" : [ |
211 | | - " * key - Your toggl API key as a string.", |
212 | | - "" |
213 | | - ], |
214 | 210 | "def" : "Headspace:setTogglKey(key) -> table", |
| 211 | + "name" : "setTogglKey", |
215 | 212 | "notes" : [ |
216 | 213 |
|
217 | 214 | ], |
|
221 | 218 | " * self" |
222 | 219 | ], |
223 | 220 | "desc" : "Sets the toggl API key.", |
224 | | - "name" : "setTogglKey" |
| 221 | + "parameters" : [ |
| 222 | + " * key - Your toggl API key as a string.", |
| 223 | + "" |
| 224 | + ] |
225 | 225 | }, |
226 | 226 | { |
227 | 227 | "doc" : "Starts the application watcher that \"blocks\" applications.\n\nReturns:\n * self", |
228 | 228 | "stripped_doc" : [ |
229 | 229 | "Starts the application watcher that \"blocks\" applications.", |
230 | 230 | "" |
231 | | - ], |
232 | | - "parameters" : [ |
233 | | - |
234 | 231 | ], |
235 | 232 | "def" : "Headspace:start() -> table", |
| 233 | + "name" : "start", |
236 | 234 | "notes" : [ |
237 | 235 |
|
238 | 236 | ], |
|
242 | 240 | " * self" |
243 | 241 | ], |
244 | 242 | "desc" : "Starts the application watcher that \"blocks\" applications.", |
245 | | - "name" : "start" |
| 243 | + "parameters" : [ |
| 244 | + |
| 245 | + ] |
246 | 246 | }, |
247 | 247 | { |
248 | 248 | "doc" : "Kills the application watcher and any running timers.\n\nReturns:\n * self", |
249 | 249 | "stripped_doc" : [ |
250 | 250 | "Kills the application watcher and any running timers.", |
251 | 251 | "" |
252 | | - ], |
253 | | - "parameters" : [ |
254 | | - |
255 | 252 | ], |
256 | 253 | "def" : "Headspace:stop() -> table", |
| 254 | + "name" : "stop", |
257 | 255 | "notes" : [ |
258 | 256 |
|
259 | 257 | ], |
|
263 | 261 | " * self" |
264 | 262 | ], |
265 | 263 | "desc" : "Kills the application watcher and any running timers.", |
266 | | - "name" : "stop" |
| 264 | + "parameters" : [ |
| 265 | + |
| 266 | + ] |
267 | 267 | }, |
268 | 268 | { |
269 | 269 | "doc" : "Stops any running toggl timers", |
270 | 270 | "stripped_doc" : [ |
271 | 271 | "Stops any running toggl timers" |
272 | | - ], |
273 | | - "parameters" : [ |
274 | | - |
275 | 272 | ], |
276 | 273 | "def" : "Headspace.stopToggl() -> nil", |
| 274 | + "name" : "stopToggl", |
277 | 275 | "notes" : [ |
278 | 276 |
|
279 | 277 | ], |
|
283 | 281 |
|
284 | 282 | ], |
285 | 283 | "desc" : "Stops any running toggl timers", |
286 | | - "name" : "stopToggl" |
| 284 | + "parameters" : [ |
| 285 | + |
| 286 | + ] |
287 | 287 | } |
288 | 288 | ], |
289 | 289 | "name" : "Headspace" |
|
0 commit comments