Skip to content
markksantosPublic

About

Keep a persistent, fully customizable watermark tiled on your desktop — for screen recording, video calls, and online teaching

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

👻 Ghostmark

Keep a persistent, fully customizable watermark tiled on your desktop — for screen recording, video calls, and online teaching, with zero post-editing

Swift SwiftUI macOS License: MIT

Features · Install · Build From Source · How It Works · Tech Stack


Existing watermark tools — Canva, CapCut, Adobe Premiere Pro — only burn a mark into a file after you've already recorded it. Ghostmark renders live, directly on your desktop, at whatever window level you choose: behind your open apps, above them, or above everything including full-screen apps. Whatever you record or share shows the watermark in real time — no export step required.

✨ Features

  • Text + Icon Watermarks — combine custom text with an optional image/logo, tiled together
  • Live Tokens — {date}, {time}, {datetime}, {user}, {host} substitute automatically, refreshed in real time
  • Six Layout Modes — Tiled across the whole screen, Centered, or pinned to any of the four corners
  • Full Style Control — rotation, opacity, font family/size/color, stroke width/color, drop shadow, horizontal/vertical spacing, margin, offset, and brick-style stagger
  • Three Window Levels — Desktop (behind app windows), Above Windows, or Always on Top (visible even over full-screen apps)
  • Every Display — covers all connected monitors, and adapts when you connect or disconnect one
  • Launch at Login — native SMAppService integration
  • Menu Bar Only — no Dock icon; an Enable toggle and Settings are one click away
  • Zero Permissions — Ghostmark only draws its own window; no Accessibility or Screen Recording access required
  • Fully Local — no telemetry, accounts, or network calls of any kind

💻 Install

  1. Download the latest Ghostmark.dmg from Releases
  2. Drag Ghostmark into your Applications folder
  3. Open Ghostmark (see below if macOS calls it "damaged")
  4. Look for the 👻 icon in your menu bar, then open Settings… to customize your watermark

If macOS says the app is "damaged"

Ghostmark is ad-hoc signed rather than notarized with a paid Developer ID, so Gatekeeper quarantines it. Clear the quarantine flag once in Terminal:

xattr -cr /Applications/Ghostmark.app

🔨 Build From Source

No Xcode project required — Ghostmark builds with swiftc directly.

git clone https://github.com/markksantos/Ghostmark.git
cd Ghostmark

./build.sh           # builds Ghostmark.app in place
./build.sh install   # build and copy to /Applications/NoSleepLab
./build.sh dmg       # build and package dist/Ghostmark.dmg

Tests

./run-tests.sh

Covers the pure layout/token logic — tile placement math, token substitution, window-level mapping, and settings persistence. Window management and rendering are verified manually — see docs/superpowers/specs/2026-07-14-ghostmark-design.md.

⚙️ How It Works

Write-up: NSWindow behind all app windows on macOS: use normal level minus one — how the Desktop level was chosen, and why displays are keyed by ID.

Ghostmark creates one borderless, click-through NSWindow per connected display, each rendering a SwiftUI Canvas that draws your watermark pattern. The window's level follows your Window Level choice — from just below .normal (behind every app window) up to .screenSaver (above full-screen apps) — and it joins every Space so it survives desktop switches. Because it's a real, on-screen window rather than a captured overlay, any screen recorder or video call sees it exactly as configured, live.

Known quirk: a one-time "local network" prompt

On first launch, macOS may ask to let Ghostmark "find devices on local networks." Ghostmark does no networking at all — this appears to be triggered by a macOS heuristic tied to per-display window enumeration interacting with Universal Control/Sidecar discovery. Choosing Don't Allow has zero effect on functionality.

🛠️ Tech Stack

Category Technology
Language Swift 5.9+
UI SwiftUI (Canvas) + AppKit (NSWindow, NSStatusItem)
Persistence UserDefaults / @AppStorage
Login Item ServiceManagement (SMAppService)
Architecture Menu bar (LSUIElement / accessory)
Build swiftc via build.sh
Min macOS 26.0 on Apple silicon (the v1.0.0 release binary is arm64 with minos 26.0)

📄 License

MIT © Mark Santos

About

Keep a persistent, fully customizable watermark tiled on your desktop — for screen recording, video calls, and online teaching

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages