rethocker 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -3
- package/package.json +1 -1
- package/src/cli.ts +3 -3
package/README.md
CHANGED
|
@@ -6,6 +6,27 @@ Requires **macOS 13+** and **Accessibility permission** (prompted automatically
|
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
+
### Homebrew (recommended)
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
brew tap benjamine/tap
|
|
13
|
+
brew install rethocker
|
|
14
|
+
rethocker install
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`rethocker install` scaffolds `~/.config/rethocker/default.ts` and registers a LaunchAgent that starts on login and auto-reloads whenever you save the file.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
rethocker log # live key monitor — see what rethocker captures
|
|
21
|
+
rethocker status # check if the background agent is running
|
|
22
|
+
rethocker restart # restart the background agent
|
|
23
|
+
rethocker uninstall # stop and remove the LaunchAgent (run before brew uninstall)
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Programmatic use (TypeScript / Bun)
|
|
27
|
+
|
|
28
|
+
If you want to use rethocker as a library in your own TypeScript project:
|
|
29
|
+
|
|
9
30
|
```bash
|
|
10
31
|
bun add rethocker
|
|
11
32
|
```
|
|
@@ -302,13 +323,13 @@ rk.remove("caps-remap")
|
|
|
302
323
|
|
|
303
324
|
## Discover key codes
|
|
304
325
|
|
|
305
|
-
Run the
|
|
326
|
+
Run the live key monitor to see every keypress in rethocker rule syntax:
|
|
306
327
|
|
|
307
328
|
```bash
|
|
308
|
-
|
|
329
|
+
rethocker log
|
|
309
330
|
```
|
|
310
331
|
|
|
311
|
-
|
|
332
|
+
Keys pressed in quick succession appear on the same line separated by spaces, exactly as you'd write them in a rule. Useful for finding the right key name or verifying that app filters work correctly.
|
|
312
333
|
|
|
313
334
|
## Events and lifecycle
|
|
314
335
|
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -196,10 +196,10 @@ Commands:
|
|
|
196
196
|
so you can copy-paste them directly into your config
|
|
197
197
|
help Print this help message
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
Install via Homebrew:
|
|
200
|
+
brew tap benjamine/tap
|
|
201
|
+
brew install rethocker
|
|
200
202
|
rethocker install
|
|
201
|
-
rethocker log
|
|
202
|
-
rethocker status
|
|
203
203
|
|
|
204
204
|
Docs: ${GITHUB}
|
|
205
205
|
`.trim();
|