desktop-notify
Send desktop notifications (macOS/Linux) with a project-title wrapper.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Desktop Notify
Contract
Prereqs:
-
bashavailable onPATH. - Notification backend:
- macOS:
terminal-notifier - Linux:
notify-send
- macOS:
Inputs:
- Message string (required) and
--level info|success|warn|error. - Optional env:
CODEX_DESKTOP_NOTIFY_ENABLED=falseto disable;PROJECT_PATHfor project title derivation.
Outputs:
- A desktop notification (best-effort); silent no-op when disabled or backend missing.
Exit codes:
-
0: success or no-op - non-zero: invalid usage or unexpected script/runtime failure
Failure modes:
- Backend not installed (script no-ops by default).
- Notifications disabled via
CODEX_DESKTOP_NOTIFY_ENABLED=false.
Use this skill when you need to surface a short status update to the user via a desktop notification.
Prefer using the project wrapper (auto title) to avoid repeating title rules:
$CODEX_HOME/skills/tools/devex/desktop-notify/scripts/project-notify.sh "your short message" --level success
If you need a custom title, call the notifier directly:
$CODEX_HOME/skills/tools/devex/desktop-notify/scripts/desktop-notify.sh \
--title "custom title" \
--message "your short message" \
--level info
Behavior
- macOS: uses
terminal-notifierwhen installed. - Linux: uses
notify-send(libnotify) when installed. - Missing backend: silent no-op by default.
Environment
-
CODEX_DESKTOP_NOTIFY_ENABLED=false: disable notifications (default: enabled) -
CODEX_DESKTOP_NOTIFY_HINTS_ENABLED=true: print a one-line install hint when backend is missing (default: disabled) -
PROJECT_PATH: used by$CODEX_HOME/skills/tools/devex/desktop-notify/scripts/project-notify.shto derive the project title (fallback: git root, then$PWD)
Install hints
- macOS:
brew install terminal-notifier - Linux (Debian/Ubuntu):
sudo apt-get install libnotify-bin - Linux (Fedora):
sudo dnf install libnotify
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-02
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!