Skip to content
PrivateVictories-MainPublic

About

Focus follows your pointer, invisibly. Event-driven hover-raise daemon for macOS — zero polling, zero UI, never fights your typing.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

alight

Focus follows your pointer. Invisibly.

The window under your mouse takes focus the moment your pointer enters it — no click needed. alight is not an app: no icon, no window, no menu bar item, no notifications. Just a tiny daemon that starts at login and runs silently, 24/7, at zero cost.

Built exclusively for Apple Silicon.

Why alight over AutoRaise / others

  • Zero polling. Everything is event-driven off a listen-only event tap. An idle mouse costs literally 0% CPU — no 20–50ms wake-ups, ever. Moving the pointer inside the focused window is a single rectangle check, and raise decisions run frame-aligned (16ms) at the highest user-interactive scheduling tier.
  • Never fights your typing. A keystroke in the last second blocks all focus changes. Your focus will not jump mid-sentence because the pointer happened to be resting somewhere else.
  • Never fights your keyboard switching. After Cmd+Tab, Spotlight, or a click, the window under the pointer stays inert until the pointer leaves it. Switching apps by keyboard and then twitching the mouse 1px does not snap focus back — the classic focus-follows-mouse wart, fixed.
  • Never raises the wrong thing. Menus, popovers, tooltips, sheets, the Dock and the desktop are ignored. Hovering a menu never dismisses it. Drags never change focus.
  • Not an app. No Dock icon, no login-item app, no Electron, no updater nagging you. One ~1MB native arm64 Swift binary plus a LaunchAgent — built for Apple Silicon only, no legacy Intel baggage.

Install

One command:

curl -fsSL https://raw.githubusercontent.com/PrivateVictories-Main/alight/main/install.sh | bash

The installer grabs a prebuilt Apple Silicon binary — no Xcode, no compiling, done in seconds. Then one manual step, because macOS requires it for anything that manages windows: System Settings → Privacy & Security → Accessibility → enable alight. The daemon arms itself automatically the moment it's granted — no restart needed.

Requires macOS 13+ on Apple Silicon (M1 or later).

From a clone:

swift test && swift build -c release
.build/release/alight install

Use

alight status                       # dashboard
alight on | off                     # toggle hover-raise
alight delay 150                    # settle delay in ms (default 0 = instant)
alight ignore add com.example.app   # apps that never hover-raise
alight log                          # recent activity
alight uninstall                    # stop + remove the LaunchAgent

With delay 0 (default), focus moves the instant the pointer crosses into a window. If you prefer windows not to react until the pointer settles, give it a small delay: alight delay 150.

Config lives in ~/.config/alight/config.json and is hot-reloaded — edits apply within 2 seconds, no restart.

How it stays invisible

  • Survives reboots and macOS updates: a per-user LaunchAgent (com.alight.daemon) with KeepAlive relaunches it at login and after crashes.
  • Survives its own updates: the installer re-signs the binary with a stable code-signing identity, so the Accessibility grant persists across rebuilds instead of silently dying the way ad-hoc-signed binaries do.
  • Uses Accessibility APIs only — no screen recording, no input capture beyond a listen-only tap, no network, no analytics, nothing phones home.

License

GPL-3.0. Use it, fork it, ship it — but derivatives must stay open source under the same license, with attribution. See LICENSE.

About

Focus follows your pointer, invisibly. Event-driven hover-raise daemon for macOS — zero polling, zero UI, never fights your typing.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages