Install, update and uninstall Lightspot
One command installs or updates Lightspot. This page explains what that command does, what happens on first launch, how to build Lightspot yourself and how to remove it.
Lightspot guide
Requirements
- macOS 13 Ventura or later.
- An internet connection for the installer, which downloads the latest release from GitHub.
- No administrator password: the installer does not use
sudo.
Install
Open Terminal and run:
curl -fsSL https://raw.githubusercontent.com/openhoangnc/mac-lightspot/main/install.sh | bashLightspot installs into /Applications when your account can write there, and into ~/Applications otherwise. To always use ~/Applications, add -s -- --user:
curl -fsSL https://raw.githubusercontent.com/openhoangnc/mac-lightspot/main/install.sh | bash -s -- --userA successful install on a Mac with Apple silicon prints:
==========================================
Lightspot Installer
==========================================
Target directory: /Applications
[1/3] Downloading latest release of Lightspot (arm64)...
--> Downloaded Lightspot-arm64.zip from GitHub Release.
[2/3] Installing to /Applications/Lightspot.app...
🛑 Stopping existing Lightspot process...
🔏 Setting permissions and codesigning...
[3/3] Launching Lightspot...
==========================================
✅ Installation complete!
📍 Location: /Applications/Lightspot.app
⌨️ Hotkey: ⌘Space (Command + Space)Lightspot then starts, a magnifying glass appears in the menu bar, and ⌘Space opens the search bar once Apple Spotlight no longer holds that shortcut (see first launch).
What the installer does
- Checks that it runs on macOS and picks the target folder.
- Downloads the build for your Mac from the latest GitHub release into a temporary folder and unzips it:
Lightspot-arm64.zip, about 1.6 MB, on Apple silicon, orLightspot-x86_64.zip, about 1.75 MB, on Intel. It asks the Mac itself withsysctl hw.optional.arm64, so a Terminal running under Rosetta still gets the Apple silicon build. From a release before 1.4.0, which has neither, it takes the universal Lightspot.zip. (Run from a clone of the repository instead, it builds the app from source withbuild.sh.) - Quits your running Lightspot, waits up to three seconds, and force-quits it if it is still running. If it is not allowed to stop it, it says so; the new copy then asks the old one to quit. A copy that another account on the same Mac runs is left alone.
- Replaces
Lightspot.appin the target folder with the new copy. - Removes the
com.apple.quarantineattribute and signs the app locally (codesign --sign -), so macOS opens it without a Gatekeeper warning. Lightspot is not notarized by Apple. - Opens the new Lightspot with
open -n, which starts it even when the old copy is still running; the new copy then asks the old one to quit. Then it deletes the temporary folder.
The script is short and readable: install.sh on GitHub. It sends nothing anywhere except the download request to GitHub.
First launch
On its very first start Lightspot does two things:
- It turns on Launch at Login, so it is there after a restart. You can turn this off in the menu bar menu.
- It offers to switch off Apple Spotlight, so ⌘Space opens Lightspot instead:

- Disable Everything turns off Spotlight’s ⌘Space and ⌥⌘Space shortcuts, its background process and its file indexing. macOS asks for your password for the indexing part. A second dialog then lists what changed and anything macOS refused. Everything can be restored later; see Turning off Apple Spotlight.
- Keep Spotlight changes nothing. Spotlight keeps ⌘Space, so Lightspot tells you that ⌘Space is already taken and offers to free it; or pick ⌥Space or ⌘⇧Space for Lightspot from the menu bar icon: Shortcut.
The dialog is skipped if Spotlight is already fully off. Lightspot never shows it again; the same actions stay available in the System Spotlight menu.
Lightspot has no Dock icon and no window of its own. It lives in the menu bar, and the search bar appears on the screen where your mouse pointer is. Opening Lightspot from Finder or Launchpad while it is already running shows the search bar instead of starting a second copy.
Installing by hand
If you prefer not to pipe a script into bash:
- Download the zip for your Mac from the releases page and unzip it:
Lightspot-arm64.zipfor Apple silicon,Lightspot-x86_64.zipfor Intel, orLightspot.zip, the universal app, which runs on both. - Move
Lightspot.appto/Applications. - Because the app is not notarized, remove the download quarantine before the first launch:
xattr -dr com.apple.quarantine /Applications/Lightspot.appUpdates
Lightspot checks GitHub for a new release once a day: five seconds after it starts, and when you open its menu, if the last successful check was more than 24 hours ago. When the check at launch finds a newer version, a dialog titled Lightspot x.y.z is available shows the version you are running, the download size and the start of the release notes; the menu also gains an Update to x.y.z… item. The dialog offers:
- Install and Relaunch downloads the build for your Mac from the GitHub release, chosen as the installer chooses, or the universal
Lightspot.zipfor a release that has no such build. It checks that the download contains Lightspot with the version the release names and code for your Mac’s processor, replaces the app, removes the quarantine flag, signs it locally like the installer does, and starts the new version; the running Lightspot stays until the new one has started, then quits. If the app’s folder is not writable by your account, macOS asks for Touch ID or your password. If the copy fails or the new version does not start, the previous version is put back and keeps running. - Release Notes opens the release on GitHub.
- Skip This Version stops the reminders for that version; it stays available from Check for Updates….
- Later closes the dialog; Update to x.y.z… stays in the menu.
Choose Check for Updates… in the menu to check right away, and untick Automatically Check for Updates to turn the daily check off; nothing is sent then. The check asks the GitHub API for the latest release; its user agent names only the app and its version. Details are on the privacy page. Like the installer, the updater trusts GitHub releases of the project: Lightspot is not notarized, so there is no Apple signature to verify.
The updaters of Lightspot 1.2.0 to 1.3.9 download the universal Lightspot.zip, so they bring 1.4.0 as the universal app; the updates after it are the build for your Mac. You can also update by running the install command again. Your settings, custom commands and pinned commands stay either way. About Lightspot shows the version you have, and a newer one if it is available. A copy of Lightspot 1.2.0 or later quits by itself when a different build of Lightspot starts; an older copy that the installer cannot stop has to be quit from its menu bar icon.
Building from source
Lightspot is a Swift package with no dependencies. You need the Swift 6 toolchain, from Xcode or the Command Line Tools; an Xcode project is not required.
git clone https://github.com/openhoangnc/mac-lightspot.gitcd mac-lightspot| Command | What it does |
|---|---|
./build.sh or make build | Release build optimised for size with full link-time optimisation, its symbols kept in build/Lightspot.app.dSYM, stripped, packaged as build/Lightspot.app and signed locally |
./run.sh or make run | Quits a running Lightspot, builds, and opens the new build with open -n |
./install.sh or make install | Builds from your checkout and installs it, like the one-line installer |
./uninstall.sh or make uninstall | Removes Lightspot (see below) |
make clean | Deletes build and .build |
Use build.sh rather than plain swift build: the bare binary has no app bundle and no Info.plist, so it does not run as a menu bar app. How the build and the tests work is described in How Lightspot works.
Uninstalling
Run:
curl -fsSL https://raw.githubusercontent.com/openhoangnc/mac-lightspot/main/uninstall.sh | bashThe uninstaller:
- Asks Lightspot to remove its Launch at Login item.
- Quits your Lightspot, forcing it after three seconds if needed.
- Deletes
Lightspot.appfrom/Applicationsand~/Applications. - Deletes its settings (
defaults delete com.lightspot.appand~/Library/Preferences/com.lightspot.app.plist): custom commands, pinned commands, snippets, search history and preferences, its folder in~/Library/Application Support/Lightspot, and the web cache and cookie file that versions up to 1.2.0 left in~/Library/Cachesand~/Library/HTTPStorages(Lightspot 1.2.2 and later delete them at launch too). In that folder it keeps Mac Tweaks’ undo journal,tweaks-journal.json, any journal Lightspot couldn’t read and set aside, and the Dock backup,dock-backup.plist: they are the only record of what Lightspot changed, and a reinstalled Lightspot can still undo it from them. - Says what Mac Tweaks changed and leaves on the Mac (the settings it changed and the background items it turned off or deleted, with what each was before in the journal, background items for all users staying off for every account, and the plists of deleted ones in the Trash, which Undo everything puts back only while they are still there; the Lightspot Mac Tweaks profile for every account; the Dock icons in the backup) and how to undo it: reinstall Lightspot and choose Undo everything Lightspot changed in Mac Tweaks’ Settings, remove the profile in System Settings › General › Device Management, or choose Restore Dock Icons. It undoes nothing itself.
- Turns Apple Spotlight back on where it was turned off: the ⌘Space and ⌥⌘Space shortcuts and the Spotlight process without a password, then file indexing, which needs
sudo. It asks before runningsudo mdutil -a -i on, and if it cannot ask, it prints that command for you to run.
Two options, added after bash -s --:
--dry-runprints every step without changing anything:
curl -fsSL https://raw.githubusercontent.com/openhoangnc/mac-lightspot/main/uninstall.sh | bash -s -- --dry-run--keep-spotlight-disabledleaves Apple Spotlight as it is.
Lightspot keeps no other files: clipboard history only ever lives in memory. The one exception is ~/.cleandevmac/clean.log, if you cleaned with Clean Dev Mac: it is cdm’s log as well, so the uninstaller leaves it. To keep your custom commands, export your settings before uninstalling.
Version history
| Version | Released | Changes |
|---|---|---|
| 1.4.3 | 2026-11-09 | Running a command in Terminal from Lightspot (Clean Dev Mac’s ⌘↵, the installer rows, shell history and custom commands) opens one Terminal window. When Terminal wasn’t open, it used to open two: an empty one in front of the one running the command. |
| 1.4.2 | 2026-11-05 | The public IP on the IP Address row comes from Cloudflare’s trace page, https://1.1.1.1/cdn-cgi/trace, instead of api.ipify.org. The request goes straight to that address with no DNS lookup, Lightspot keeps only the address from the answer, and it is still sent only when you type a query that names your IP or press ↵ on the row. |
| 1.4.1 | 2026-10-31 | Mac Tweaks opens in a window of its own, which you can move and which stays open when you click elsewhere, so approving the profile in System Settings or answering a Touch ID prompt no longer closes it half-way. It opens where you last put it and closes with its close button, ⌘W, or Esc when no plan or wait is open. Clean Dev Mac opens in its own window too, and stays open while Finder, a password prompt or cdm in your terminal takes the focus. A scan or a clean keeps running with the window closed, as a Mac Tweaks apply does. Background Items can delete an item: ⌫ marks it, and the apply stops it, switches it off so a copy its app writes again doesn’t load, and moves its plist to the Trash. Deleting another account’s agent, an item in /Library/LaunchAgents or a daemon shares one administrator prompt. A leftover whose program is gone is deleted the same way. A delete is saved to the undo journal first, with where the plist went, so Undo everything Lightspot changed moves it back from the Trash and switches it on as it was. It never replaces a file its app has written again, and says so when the copy is no longer in the Trash. Opening a System Settings pane goes to the System Settings that is running and starts one only when none is, so copies no longer pile up in the Dock on macOS 27.2. 1.4.0 started a new one each time. |
| 1.4.0 | 2026-10-31 | Mac Tweaks: type free up space or mac tweaks, or choose Mac Tweaks… in the menu, to see the space macOS keeps and free what you tick: old macOS installers, iPhone and iPad updates, unavailable simulators, Time Machine local snapshots, the aerial videos every account shares, GarageBand and its sound library, iMovie, Keynote, Numbers, Pages, and the app caches Clean Dev Mac doesn’t cover. Files go to the Trash, simulators and snapshots are deleted right away, what only an administrator can do runs as one script, once, and every apply is logged to ~/Library/Application Support/Lightspot/mac-tweaks.log. An admin command that started under Touch ID runs once: one that failed, or ran longer than a minute, used to run again behind the password dialog. Mac Tweaks’ Apple Intelligence section lists the features this Mac has, each with its state and the models it needs, and turns the ones you tick off for every account on this Mac: one configuration profile you approve in System Settings switches them off and stops their models downloading, then Lightspot removes the models no kept feature needs. Turn Apple Intelligence back on removes the profile. Mac Tweaks’ Settings section offers 41 macOS settings in six groups, from analytics and ads to Finder, the Dock and typing, with two presets. Each row shows whether the setting is on, and every change can be undone: Lightspot saves the value it found before it changes anything, and Undo everything Lightspot changed puts it all back. Apple Music at three levels: turn off the Apple Music service, stop Music from opening at all, or turn off the play, pause and skip keys. Mac Tweaks’ Background Items section lists the launch agents and daemons other apps installed in ~/Library/LaunchAgents, /Library/LaunchAgents and /Library/LaunchDaemons, never macOS’s own, each with what it runs and whether launchd has it on, off or not loaded, and turns the ones you tick off or back on. Updaters are tagged, and a leftover whose program is gone goes to the Trash. Daemons change for every account on this Mac and share one administrator prompt. What it turns off is saved to the undo journal first, so Undo everything Lightspot changed turns it back on too. Clear Dock Icons saves the Dock’s icons first, and the new Restore Dock Icons puts them back where they were, keeping icons added since. Both wait for a Dock that has just started to settle, check the icons in the Dock that comes up and try once more if a restart lost them; Restore deletes its backup only once the icons are back. The uninstaller keeps Mac Tweaks’ undo journal and Dock backup, and says what stays, background items Lightspot turned off included, and how to undo it. Opening System Settings from Lightspot shortly after quitting it opens the pane, instead of an alert that System Settings is not open anymore (seen on macOS 27.2). A reinstalled or rebuilt Lightspot takes over from the running copy reliably: it asks the old copy to quit every half second while it waits, instead of once, which a copy that had only just started could miss. The installer starts the new copy even when it couldn’t stop the old one; the new copy then asks the old one to quit and takes over. Before, macOS only brought the old copy forward. A smaller app: Lightspot’s universal binary is 5.1 MB, 42% smaller than 1.3.9’s 8.8 MB, and the binary in the build for one Mac is 2.2 MB on Apple silicon and 2.9 MB on Intel. The installer and the updater download the build for your Mac: Lightspot-arm64.zip (about 1.6 MB) on Apple silicon, Lightspot-x86_64.zip (about 1.75 MB) on Intel, judged by the Mac itself, so a Terminal or a Lightspot running under Rosetta still gets the Apple silicon build. The updater refuses a download without your Mac’s architecture. Lightspot.zip stays the universal app (about 2.9 MB) for the download button and the updaters of 1.2.0 to 1.3.9, which bring this release as the universal build. Each release also carries Lightspot.app.dSYM.zip, the symbols that turn a crash report into function names. |
| 1.3.9 | 2026-10-30 | The selected recent project names the editor ↵ opens it in, such as Zed, Cursor or GoLand, instead of always saying VS Code. |
| 1.3.8 | 2026-10-30 | Zed projects appear under Recent Projects again: Lightspot looked for Zed’s database in the wrong place and missed the folders Zed had opened most recently. VS Code and Cursor projects follow the editor’s File ▸ Open Recent order instead of a random one, JetBrains IDEs and Android Studio no longer put the oldest project first, and Sublime Text finds projects opened from a project file, including ones opened since Sublime last quit. A folder you use in more than one editor opens in the one you used it in last. |
| 1.3.7 | 2026-10-27 | Clean Dev Mac clears the copies of Chrome that a crashed or killed browser leaves in your temp folder, never one a running browser may use, plus clang’s module cache and Node’s compile cache, all from your own temp folders under /private/var/folders. New rows from cdm: Zed’s language servers, Claude desktop’s older Claude Code builds, Chrome’s on-device AI models and the aerial wallpaper videos macOS downloads. Rust’s offline docs are left to cdm in Terminal (⌘↵). |
| 1.3.6 | 2026-10-27 | Clean Dev Mac says what a restart would free (swap, temp files and deleted files still held open, naming the apps that hold them) once that is at least the disk’s free space, and points to Claude Code’s desktopSessionCleanupPeriodDays setting when its session history passes 1 GB. A file hard-linked into two of a row’s folders counts once, as in cdm, and old Claude Code sessions are offered on the day cdm offers them, no longer a day early. |
| 1.3.5 | 2026-10-27 | Clean Dev Mac shows cdm’s newest opt-in rows: the system image of an Android emulator nobody has started in 60 days, every Android build-tools and platform version but the newest, and Claude Code sessions untouched for 30 days, which only ever go to the Trash. Rust toolchains are left to cdm in Terminal (⌘↵). |
| 1.3.4 | 2026-10-22 | Updating no longer makes Lightspot disappear: the running copy stays until the new version has started, then hands over, and if the new version fails to start the previous one is put back. This applies to updates from 1.3.4 on. |
| 1.3.3 | 2026-10-22 | Clean Dev Mac’s repo scan offers git-ignored folders that hold another checkout again, such as the worktrees Claude Code keeps in .claude/worktrees: they mostly hold junk, a checkout is easy to make again, and they go to the Trash, where they can be restored. This undoes 1.3.2’s change. |
| 1.3.2 | 2026-10-21 | Clean Dev Mac’s repo scan no longer offers a git-ignored folder that holds another checkout, such as the worktrees Claude Code keeps in .claude/worktrees. 1.3.1 could offer such a folder for the Trash, with the worktrees and their uncommitted work inside. |
| 1.3.1 | 2026-10-21 | Clean Dev Mac also scans your code repos: press ⇥ after the cache scan for one row per repo with its node_modules, build output and other git-ignored files. Only what the repo’s own git ignores is offered, never .env files, and regenerable folders are deleted while other ignored files go to the Trash. |
| 1.3.0 | 2026-10-21 | Clean Dev Mac: type cdm to measure the developer caches CleanDevMac’s rules know (Xcode, Gradle, npm, Go, Cargo, Homebrew and more), tick what to remove, check the itemized plan and clean it, with cdm’s own safety checks. ⌘↵ runs the full cdm in your terminal. Rows that install setup-zsh, MacStats and setup-zsh’s dev tools menu in your terminal. Fourteen macOS tweaks join the quick actions: Clear Dock Icons, Dock auto-hide and its delay, hidden files, file extensions, desktop icons, .DS_Store on network drives, press-and-hold accents, smart quotes and more. |
| 1.2.4 | 2026-10-21 | System Settings results match the terms System Settings’ own search uses (lockdown mode, power nap, sticky keys), in your languages, and name the setting that matched. Eleven more panes, 46 in all, under their macOS 26 names; the General and Privacy & Security links open the right pane again. The hardware readout answers to many more words: memory, disk space, cpu usage, resources and others. Builds with only the Command Line Tools on the macOS 27 SDK, and the install scripts no longer try to stop another account’s Lightspot. |
| 1.2.3 | 2026-10-17 | A ⌃Space option for the shortcut, and the Shortcut menu names the macOS shortcut that already uses the combination you picked. |
| 1.2.2 | 2026-10-17 | At launch, deletes the web cache and cookie file that versions up to 1.2.0 left in ~/Library/Caches and ~/Library/HTTPStorages. |
| 1.2.1 | 2026-10-16 | Restoring Spotlight starts its process again right away instead of after the next login, and the uninstaller also restores ⌥⌘Space. The update check no longer leaves a web cache on disk; the uninstaller removes the one 1.2.0 left. |
| 1.2.0 | 2026-10-16 | Automatic update check (daily, can be turned off) with one-click install. Turning off Spotlight now handles both ⌘Space and ⌥⌘Space, applies at once and reports what macOS refused; the uninstaller turns Spotlight back on. Only one copy of Lightspot runs at a time. The public IP is looked up only when you ask for it, and copied values, clipboard entries and kill actions are no longer saved in search history. clip alone lists clipboard history; 0xFF in dec, hash sha256 …, JWT headers, HSL colours and date → epoch work; ⌫ deletes search history entries. Kill by port lists only listening processes, names them, and never offers system processes; commands run properly in Ghostty, Kitty, WezTerm and Alacritty; more JetBrains IDEs and Android Studio. |
| 1.1.2 | 2026-10-16 | Search runs while an input method is still composing a word (underlined “marked text”), so Vietnamese, Japanese, Chinese and Korean input no longer waits for each word to be committed. |
| 1.1.1 | 2026-09-05 | The About dialog reads the version from the app bundle instead of a fixed “1.0.0”. |
| 1.1.0 | 2026-09-05 | First-run onboarding: Lightspot turns on Launch at Login and offers to disable Apple Spotlight. |
| 1.0.0 | 2026-09-05 | First public release. |