Skip to content
المشاريع

حول

A focus app for macOS: the whole screen freezes over, except the one or two apps you're working in.

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
جارٍ جمع السجل
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Veil

Website Homebrew License: MIT Swift Platform

Only what you're working on. Everything else freezes over.

Veil lays a sheet of frost over your whole screen, except the apps you're working in, and never more than two of them. It's Rime's frozen screen made system-wide: Rime keeps one PDF page clear, Veil keeps your two apps clear, whatever they are.

Veil in action: the screen freezes over, one more app stays clear, and a third app has to knock

Two documents side by side on frosted ice, with Veil's small pill at the top of the screen

The ice and the menu are Veil's own. The documents in these pictures are made up.

This is version 0.1, the first public version, for macOS. The identity and the design of the menu live in brand/veil-brandkit.html.

Install

  • Download: get Veil-macOS-v0.1.0.zip from Releases, unzip it and move Veil to Applications.
  • Homebrew: brew install --cask Yvsleyen00941/tap/veil

Veil needs macOS 26 or later. It isn't notarized, so macOS won't open it the first time. Go to System Settings → Privacy & Security and click Open Anyway. Veil lives in the menu bar and has no Dock icon.

What it does

  • ⌥ Space freezes. Ice grows in from the screen edges, Rime's freeze, until everything but the app you were in is frosted over. Its windows stay clear and rest on the ice with a soft shadow. Every window of a clear app stays clear: two documents side by side in Preview are both readable.
  • The menu bar and the Dock freeze too, the way Rime hides them. Push the pointer against the top or bottom edge and that bar thaws; it stays while the pointer is on it or a menu is open, and freezes over again a moment after you leave. Dragging a window never thaws a bar. A menu bar or Dock that hides itself just slides in over the ice.
  • Thaw, the two-app menu. A small glass menu drops in at the top centre, under the menu bar or the notch. It shows your two slots, then what to put in the second one: open apps first (with a dot, like the Dock), then apps you usually use with the first one, frosted until you pick them. Click one or press 1–4. Picking an app that isn't open opens it.
  • A third app knocks. Click a frozen window or ⌘-Tab to another app and it stays frozen. The menu asks which of your two it should replace. Esc keeps the pair you have. There's no setting to raise the limit; the limit is the point.
  • It steps aside. After two seconds the menu shrinks to a pill with both icons. Click it to open it.
  • Windows stay where they are. Veil never moves or resizes anything. Drag a clear window and the hole follows it.
  • It remembers. Press ⌥ Space again to melt; freeze again from one of the two apps and you get the same pair back. Veil learns which apps you pair and offers those first.
  • Chat and mail apps are never suggested. You can still thaw them by clicking their window.
Freezing in Dark Mode
Frost growing in from the screen edges over a busy desk, around one clear document Two clear documents on dusky ice

The menu after you freeze, with both slots filled, and when a third app knocks:

One app clear, with open and suggested apps beside it Both slots filled Messages is frozen and asks to be swapped in

Keyboard

Keys Does
⌥ Space Freeze, or melt (⌃⌥ Space if another app already owns ⌥ Space)
1–4 Pick an app from the menu, while it's offering
1, 2 Swap the knocking app in for the first or second app
Esc Fold the menu away, or keep your pair when a third app knocks

How it works

  • No permissions. Window positions and owners come from CGWindowListCopyWindowInfo, which needs neither Accessibility nor Screen Recording access as long as you don't read window titles. Shortcuts use Carbon's hot key API, which also needs no permission.
  • The frost is Rime's: your wallpaper, blurred, brightened and grained with Core Image, rendered once per screen and kept. Because it isn't a live blur of the screen, frozen windows, Dock icons and widgets can't show through. The freeze and melt are Rime's animated masks too.
  • Two sheets of ice per screen. One sits at the top of the ordinary window levels, above windows and floating panels but below the Dock and the menu bar. An exact copy, with the same frost, holes and shadows, lies above the bars and shows only over them, so they vanish without a seam. Thawing a bar fades the copy there, and the bar shows over the ice. The Thaw menu sits above everything.
  • The holes are a vector mask built with path operations, back to front: clear rounded rects for the focus windows, frost again wherever a frozen window lies on top of one. System windows that lie mostly over a clear window, like open and save dialogs or the handle between tiled windows, belong to background processes; Veil keeps those clear too, and leaves other system windows alone.
  • Following windows. A display link re-reads the window list at display rate while a mouse button is down or a window moved in the last half second, and four times a second otherwise.
  • Bringing apps forward. macOS turns down activate() from background apps, so Veil falls back to NSWorkspace.openApplication, which always brings a running app's windows to the front.
  • Thaw is SwiftUI with Liquid Glass, in a non-activating panel, so the app you're working in keeps the keyboard. 1–4 and Esc are only claimed while the menu is asking something.
  • No dependencies, no network access, no tracking. Your pairs are stored in Veil's preferences.

Requirements

  • macOS 26 or later.
  • Xcode 26 or later to build. The project is generated by XcodeGen from project.yml; after changing it, run xcodegen generate.

Build

xcodegen generate
xcodebuild -project Veil.xcodeproj -scheme Veil -configuration Release -derivedDataPath build build
ditto build/Build/Products/Release/Veil.app /Applications/Veil.app

The app icon is drawn by scripts/render-icon.swift from the same geometry as the brand kit:

swift scripts/render-icon.swift

Development

Launch arguments for test runs:

Argument Does
-VeilFreezeOnLaunch YES Freezes 0.8 s after launch, with the app in front
-VeilPairWith <bundle id> Then picks that app for the second slot, opening it if needed
-VeilQuitAfter <seconds> Melts and quits after that long, so a test run can't leave the screen frozen
-VeilShots <folder> Debug builds only: photographs Veil's own ice and menu around made-up documents, then quits
-VeilDebugLog YES Logs mode changes and frost timings to stderr
-VeilRegularApp YES Gives Veil a Dock icon, so screenshot tools that skip menu bar apps can see its windows
build/Build/Products/Debug/Veil.app/Contents/MacOS/Veil -VeilFreezeOnLaunch YES -VeilQuitAfter 20 -VeilDebugLog YES

Not yet

  • Settings: a shortcut recorder, and a list of apps never to suggest.
  • Windows: DirectComposition with an Acrylic backdrop, window bounds from DwmGetWindowAttribute.
  • Notarisation.

More apps by Yorben

All free and open source.

  • Rime: PDF reader for Mac: only the page is left, the rest freezes over. Website
  • Tape: Stock ticker in the empty corner beside the Dock. Website
  • Needle: What’s playing, in the empty corner beside the Dock. Website
  • Cockpit: Your day on one screen, for Mac and iPad. Website
  • Waybill: A delivery game for iPad, in 3D. Website

License

MIT.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…