Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

About

A native macOS menu bar utility that dims, blurs, and tints everything behind your active windows for distraction-free deep focus.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

TotalFocus (v2.59)

Native macOS Focus & Backdrop Engine — Powered by Core Animation (CABackdropLayer) & Metal Shaders.

TotalFocus dims, blurs, and textures everything behind your active workspace in real time, eliminating visual clutter without interfering with your workflow. Built natively in Swift, AppKit, SwiftUI, QuartzCore, and Metal.


✨ Visual & Optical Engine

  • Hardware-Accelerated Optical Blur (0–72 pt): Uses native WindowServer-aware CABackdropLayer with real-time gaussianBlur and edge normalization (inputNormalizeEdges) for zero-artifact background diffusion across multiple displays.
  • Two Distinct Focus Modes:
    • Ambient Mode: Soft, gradual vertical fade (bottomUpAmbientStops) that keeps your upper desktop breathable while grounding your active window.
    • Deep Mode: Full-screen isolation with deeper optical blur (34 pt), monochrome desaturation, film grain (12%), and dark tinting (42%) for distraction-free deep work.
  • Custom Metal Film Grain Shader (Grain.metal): A stitchable Metal fragment shader ([[stitchable]] half4 grainShader) that renders organic frosted-glass micro-texture synchronized with the backdrop gradient, radial window borders, and cursor ripple masks to eliminate color banding.
  • Monochrome Desaturation: Real-time colorSaturate Core Animation filter (inputAmount = 0.0) that strips distracting colors from background windows.
  • Adaptive Gradient & Window Borders Mode:
    • Smoothly dissolves blur from bottom to top (or inverted top-to-bottom).
    • Window Borders Mode: Switches to a dynamic radial aura centered on your active window (enhancedWindowBorderStops), framing your workspace with a soft halo.
  • Custom Tint & macOS Color Wheel: 9 curated macOS swatches (Pure Black, Pure White, Graphite, Purple, Blue, Green, Yellow, Orange, Pink) plus full NSColorPanel multicolor wheel integration and opacity control (0–95%).

🪟 Intelligent Window & Workspace Management

  • Multi-Window Focus (1–10 Windows): Keep up to 10 recent windows sharp simultaneously without blurring each other.
  • All Windows from Active App: Automatically keeps every window belonging to the frontmost application unblurred, or isolates only the single frontmost window.
  • Stage Manager Integration:
    • Toggle macOS Stage Manager directly from TotalFocus.
    • Choose whether to keep side window thumbnails sharp (level -1 underlay) or blur them alongside the background.
  • Smart System Awareness: Automatically pauses or adapts during Mission Control, native Full-Screen apps, screen lock, and system sleep/wake cycles.
  • Smooth Window Crossfades: Dual-layer ScreenOverlayPair architecture (baseUnderlayWindow + activeWindow) crossfades seamlessly when switching between windows at up to 120 FPS.

⚡ Gestures, Peek & Automation

  • Per-App Focus Profiles: Assign automatic rules to any macOS application (drag-and-drop or app picker) to switch to Ambient, switch to Deep, or Pause TotalFocus automatically when that app becomes active.
  • Cursor Ripple Reveal: Optional radial wave reveal expanding directly from your mouse cursor position (100–1500 ms).
  • Shake Mouse Gesture:
    • Shake your cursor horizontally to toggle focus On/Off (configurable sensitivity & modifier key).
    • Shake + Hold Peek: Shake while holding your chosen modifier key (⇧, ⌥, ⌃, ⌘) to peek at your desktop for 2 seconds and keep it clear while held.
  • Hot Corners Peek: Move the cursor into any screen corner (220 ms dwell) to temporarily reveal background windows.
  • Peek on File Drag: Automatically clears the overlay the instant you start dragging a file (NSPasteboard.Name.drag) so you can drop files onto desktop or background windows effortlessly.
  • Global Carbon Hotkeys: Customizable system-wide shortcuts for Toggle On/Off (default ⌘⇧F) and Hold-to-Peek (default ⌥Space).
  • Auto-Hide System UI: Automatically hides the macOS Dock, Menu Bar, or both while focus mode is active—with crash-safe state recovery (totalfocus.autoHide.dirty).

🖥️ Native macOS Experience & Auto-Updater

  • Native Liquid Glass App Icon (AppIcon.icon): Multi-layer Apple Icon Composer artwork that dynamically adapts across Default, Dark, Clear, and Tinted macOS appearance styles.
  • Dynamic Animated Menu Bar Icon: Custom SwiftUI/Core Animation concentric ring indicator (MonitorIconView) reflecting Ambient, Deep, Standby, and Off states with spring physics.
  • Tahoe Ticked Sliders: Custom tactile sliders with magnetic tick detents and native Force Touch / trackpad haptic feedback (NSHapticFeedbackManager).
  • Built-In GitHub Auto-Updater: Checks Reinaldoking147/TotalFocus releases directly from the control panel, downloads the .zip bundle, replaces the app atomically, and relaunches seamlessly.
  • Bilingual Localization: Full native support for English and Portuguese (Brazil) based on macOS system language.

🛠️ Tech Stack & Requirements

  • macOS 14.0+ (Sonoma / Sequoia / Tahoe) — Apple Silicon & Intel (x86_64 / Universal)
  • Frameworks: SwiftUI, AppKit, QuartzCore (CABackdropLayer, CAFilter), Metal (MetalKit / Stitchable Shaders), Carbon (RegisterEventHotKey)

📦 Installation

  1. Download the latest TotalFocus-v2.59.zip from the Releases page.
  2. Unzip and drag TotalFocus.app into your /Applications folder.
  3. Launch TotalFocus from your Menu Bar.

About

A native macOS menu bar utility that dims, blurs, and tints everything behind your active windows for distraction-free deep focus.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages