DockPeek 是一款 macOS 菜单栏应用,当您悬停在 Dock 图标上时,会显示该应用的实时窗口预览,模仿 Windows 任务栏的预览行为。

Stars

4

7 天增长

暂无数据

Fork 数

1

开放 Issue

0

开源协议

AGPL-3.0

最近更新

2026-07-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它无需注入 Dock 或禁用系统完整性保护,仅依赖 Accessibility 和 ScreenCaptureKit API,且已通过 Apple 公证,安装简便。

适合谁使用

  • 怀念 Windows 任务栏预览的 macOS 用户
  • 需要管理多个打开窗口的高级用户
  • 对 macOS API(Accessibility、ScreenCaptureKit)感兴趣的开发者
  • 依赖 VoiceOver 等辅助功能的用户

典型使用场景

  • 无需切换应用即可快速预览窗口内容
  • 辨别哪个应用窗口包含所需信息
  • 在拥挤的桌面上高效管理窗口
  • 通过 VoiceOver 进行无障碍交互

项目优势

  • 无需注入 Dock 或修改 SIP
  • 已通过 Apple 公证和签名,安装无 Gatekeeper 警告
  • 可配置悬停延迟、缩略图大小以及按应用禁用预览
  • 尊重系统辅助功能设置(减弱动态效果、减少透明度)

使用前须知

  • 需要 macOS 14 或更高版本(Apple Silicon 或 Intel)
  • 需一次性授予 Accessibility 和 Screen Recording 权限
  • 仅通过 ScreenCaptureKit 捕获窗口图像(预览中不支持视频或交互)

README 快速开始

DockPeek — dock-preview.app

Hover any running app in the macOS Dock and get a live preview of its windows — the way the Windows taskbar does it. Runs as a quiet menu-bar app; no Dock injection, no disabling SIP, no system-wide hacks.

Install

  1. Download the latest .dmg from the Releases page.
  2. Open it and drag dock-preview to Applications.
  3. Launch it — the app is signed and notarized by Apple, so it opens with no Gatekeeper warning.
  4. Grant Accessibility and Screen Recording in the onboarding window, then click Relaunch.

Prefer to build it yourself? See Build & run.

How it works

PieceAPI
Detect which Dock icon the cursor is overAccessibility (AXUIElementCopyElementAtPosition, AXDockItem)
Resolve the icon to a running appDock item AXURL → bundle id → NSRunningApplication
Capture window thumbnailsScreenCaptureKit (SCScreenshotManager.captureImage)
Show the previewBorderless non-activating NSPanel above the icon

It never injects into com.apple.dock. It only observes via the Accessibility API and reads window images via ScreenCaptureKit — both gated behind one-time, per-app macOS permissions.

Permissions (granted once)

  1. Accessibility — to read which Dock icon the cursor is over and its frame.
  2. Screen Recording — to capture the window images shown in the preview.

Nothing is recorded, saved, or sent anywhere; images live only in memory to draw the thumbnail. A friendly onboarding window walks you through both, with a Relaunch button because Screen Recording only re-evaluates on launch.

Build & run

./build.sh            # compiles + assembles dock-preview.app + ad-hoc signs it
open ./dock-preview.app

Then grant the two permissions in the onboarding window. dock-preview.app lands in the project root and launches on double-click.

Regenerate the icon after editing tools/make_icon.swift:

swift tools/make_icon.swift && ./build.sh

Package for distribution

./package.sh          # → dist/dock-preview-.zip and .dmg (ad-hoc

项目描述

Just the Accessibility API to find the icon you're hovering + ScreenCaptureKit for live thumbnails. Two one-time permissions, then it runs quietly in the menu bar.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

Blaizzy
精选
Blaizzy GitHub avatar

nativ

Nativ is a native macOS app that lets you run AI models locally on Apple silicon, offering chat, model management, performance analytics, and an OpenAI/Anthropic-compatible API server.

AI 与机器学习AI 视觉与语音
985
uzairansaruzi
精选
uzairansaruzi GitHub avatar

hermex

Hermex is a native SwiftUI iPhone app that lets you control a self-hosted Hermes AI agent directly from your phone, with no subscriptions, tracking, or third-party relay.

AI 与机器学习大语言模型
941
simonw
精选
simonw GitHub avatar

speech-analyzer-cli

A macOS command-line tool that uses Apple's on-device speech APIs to transcribe prerecorded audio into plain text, JSON, JSONL, SRT, or WebVTT.

开发者工具CLI 与终端
20