gazectl 0.4.2 → 0.5.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 +12 -3
- package/bin/gazectl-bin +0 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,9 +17,18 @@
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
`gazectl` uses your webcam to detect which monitor you're looking at and automatically switches focus to it. It uses Apple's Vision framework for real-time face tracking and
|
|
20
|
+
`gazectl` uses your webcam to detect which monitor you're looking at and automatically switches focus to it. It uses Apple's Vision framework for real-time face tracking and native macOS APIs to switch monitor focus — no third-party window manager required.
|
|
21
21
|
|
|
22
|
-
> macOS only. Requires macOS 14
|
|
22
|
+
> macOS only. Requires macOS 14+.
|
|
23
|
+
|
|
24
|
+
## Permissions
|
|
25
|
+
|
|
26
|
+
gazectl needs two macOS permissions to work:
|
|
27
|
+
|
|
28
|
+
- **Camera** — for head tracking via the webcam
|
|
29
|
+
- **Accessibility** — for moving the cursor and clicking to switch monitor focus
|
|
30
|
+
|
|
31
|
+
Grant both in **System Settings → Privacy & Security**. macOS will prompt you on first run.
|
|
23
32
|
|
|
24
33
|
## Install
|
|
25
34
|
|
|
@@ -61,7 +70,7 @@ On first run, gazectl asks you to look at each monitor and press Enter. It sampl
|
|
|
61
70
|
|
|
62
71
|
1. **Calibrate** — look at each monitor, gazectl records the yaw angle
|
|
63
72
|
2. **Track** — Apple Vision detects head yaw in real-time (~30fps)
|
|
64
|
-
3. **Switch** — when yaw crosses the midpoint between calibrated angles,
|
|
73
|
+
3. **Switch** — when yaw crosses the midpoint between calibrated angles, moves the cursor to the target monitor and clicks to focus
|
|
65
74
|
|
|
66
75
|
## Build from source
|
|
67
76
|
|
package/bin/gazectl-bin
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gazectl",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Head tracking display focus switcher for macOS
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Head tracking display focus switcher for macOS",
|
|
5
5
|
"bin": {
|
|
6
6
|
"gazectl": "bin/gazectl"
|
|
7
7
|
},
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"display",
|
|
18
18
|
"monitor",
|
|
19
19
|
"focus",
|
|
20
|
-
"
|
|
20
|
+
"accessibility",
|
|
21
21
|
"macos",
|
|
22
22
|
"webcam",
|
|
23
23
|
"swift",
|