Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Remove Focus (timer, headphones, project time); stressed Mochi a little calmer

Clauded59fb02ac5c1
diff --git a/NotchBuddy/Resources/Localizable.xcstrings b/NotchBuddy/Resources/Localizable.xcstrings
index 555fc1af..1170e931 100644
--- a/NotchBuddy/Resources/Localizable.xcstrings
+++ b/NotchBuddy/Resources/Localizable.xcstrings
@@ -521,2021 +521,6 @@
}
}
},
- "Focus" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "تركيز"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "ফোকাস"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Focus"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Enfoque"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Focus"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "फ़ोकस"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Fokus"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Foco"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Фокус"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "专注"
- }
- }
- }
- },
- "hub.notch.focus" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "مؤقت للعمل بتركيز، وموتشي بسماعاته، ووقتك لكل مشروع."
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "মনোযোগ দিয়ে কাজের টাইমার, হেডফোন পরা মোচি, আর প্রতিটি প্রজেক্টে আপনার সময়।"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "A timer for deep work, Mochi with his headphones on, and your time per project."
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Un temporizador para concentrarte, Mochi con sus cascos y tu tiempo por proyecto."
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Un minuteur pour bosser au calme, Mochi avec son casque, et ton temps par projet."
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "गहरे काम के लिए टाइमर, हेडफ़ोन पहने मोची, और हर प्रोजेक्ट पर आपका समय।"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Timer untuk kerja fokus, Mochi dengan headphone-nya, dan waktumu per proyek."
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Um timer para trabalhar concentrado, o Mochi de fones e o seu tempo por projeto."
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Таймер для глубокой работы, Мочи в наушниках и ваше время по проектам."
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "专注工作的计时器、戴着耳机的 Mochi,以及你在每个项目上的时间。"
- }
- }
- }
- },
- "focus.stop?" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "إيقاف؟"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "থামাবেন?"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Stop?"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "¿Parar?"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Arrêter ?"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "रोकें?"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Hentikan?"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Parar?"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Остановить?"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "停止?"
- }
- }
- }
- },
- "focus.start-help %lld" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "بدء جلسة تركيز لمدة %lld دقيقة"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld মিনিটের ফোকাস সেশন শুরু করুন"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Start a %lld-minute Focus session"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Empezar una sesión de enfoque de %lld min"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Lancer une session Focus de %lld min"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld मिनट का फ़ोकस सत्र शुरू करें"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Mulai sesi fokus %lld menit"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Iniciar uma sessão de foco de %lld min"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Начать сеанс фокуса на %lld мин"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "开始 %lld 分钟的专注"
- }
- }
- }
- },
- "focus.stop-help" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "انقر مرتين لإيقاف الجلسة"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "সেশন থামাতে দুবার ক্লিক করুন"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Click twice to stop the session"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Haz clic dos veces para parar la sesión"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Clique deux fois pour arrêter la session"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "सत्र रोकने के लिए दो बार क्लिक करें"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Klik dua kali untuk menghentikan sesi"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Clique duas vezes para parar a sessão"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Нажмите дважды, чтобы остановить сеанс"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "点两次停止专注"
- }
- }
- }
- },
- "focus.today" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "اليوم"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "আজ"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Today"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Hoy"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Aujourd'hui"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "आज"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Hari ini"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Hoje"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Сегодня"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "今天"
- }
- }
- }
- },
- "focus.week" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "7 أيام"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "৭ দিন"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "7 days"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "7 días"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "7 jours"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "7 दिन"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "7 hari"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "7 dias"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "7 дней"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "7 天"
- }
- }
- }
- },
- "focus.about" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "مؤقت في الجزيرة. يضع موتشي سماعاته ويبقى Coucou صامتًا حتى النهاية: لا أصوات، ولا تفتح الجزيرة من تلقاء نفسها. لكن طلب الإذن أو سؤال الوكيل يصل دائمًا."
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "আইল্যান্ডে একটি টাইমার। মোচি হেডফোন পরে আর শেষ না হওয়া পর্যন্ত Coucou চুপ থাকে: কোনো শব্দ নেই, আইল্যান্ড নিজে খোলে না। কোনো এজেন্টের অনুমতির অনুরোধ বা প্রশ্ন তবুও আসে।"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "A timer in the island. Mochi puts his headphones on and Coucou keeps quiet until it ends: no sounds, and the island no longer opens by itself. A permission request or a question from an agent still comes through."
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Un temporizador en la isla. Mochi se pone los cascos y Coucou guarda silencio hasta el final: sin sonidos, y la isla ya no se abre sola. Una solicitud de permiso o una pregunta de un agente sigue llegando."
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Un minuteur dans l'île. Mochi met son casque et Coucou se tait jusqu'à la fin : pas de sons, et l'île ne s'ouvre plus toute seule. Une demande de permission ou une question d'un agent passe quand même."
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "आइलैंड में एक टाइमर। मोची हेडफ़ोन पहन लेता है और खत्म होने तक Coucou चुप रहता है: कोई आवाज़ नहीं, और आइलैंड अपने आप नहीं खुलता। किसी एजेंट का अनुमति अनुरोध या सवाल फिर भी आता है।"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Timer di pulau. Mochi memakai headphone dan Coucou diam sampai selesai: tanpa suara, dan pulau tidak terbuka sendiri. Permintaan izin atau pertanyaan dari agen tetap muncul."
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Um timer na ilha. O Mochi coloca os fones e o Coucou fica em silêncio até o fim: sem sons, e a ilha não abre mais sozinha. Um pedido de permissão ou uma pergunta de um agente ainda chega."
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Таймер в острове. Мочи надевает наушники, и Coucou молчит до конца: без звуков, остров больше не открывается сам. Запрос разрешения или вопрос агента всё равно приходят."
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "灵动岛里的计时器。Mochi 戴上耳机,Coucou 保持安静直到结束:没有声音,岛也不再自己打开。代理的权限请求或提问仍会显示。"
- }
- }
- }
- },
- "focus.length" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "الجلسة"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "সেশন"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Session"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sesión"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Session"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "सत्र"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sesi"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sessão"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Сеанс"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "时长"
- }
- }
- }
- },
- "focus.minutes %lld" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld د"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld মিনিট"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld min"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld min"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld min"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld मिनट"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld mnt"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld min"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld мин"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld 分钟"
- }
- }
- }
- },
- "focus.break" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "استراحة"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "বিরতি"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Break"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Descanso"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Pause"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "ब्रेक"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Istirahat"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Pausa"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Перерыв"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "休息"
- }
- }
- }
- },
- "focus.no-break" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "بدون استراحة"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "বিরতি নেই"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "No break"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sin descanso"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Pas de pause"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "कोई ब्रेक नहीं"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Tanpa istirahat"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sem pausa"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Без перерыва"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "不休息"
- }
- }
- }
- },
- "focus.start" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "بدء جلسة"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "সেশন শুরু করুন"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Start a session"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Empezar una sesión"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Lancer une session"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "सत्र शुरू करें"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Mulai sesi"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Iniciar uma sessão"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Начать сеанс"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "开始专注"
- }
- }
- }
- },
- "focus.stop" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "إيقاف"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "থামান"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Stop"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Parar"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Arrêter"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "रोकें"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Hentikan"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Parar"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Остановить"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "停止"
- }
- }
- }
- },
- "focus.shortcut-hint %@" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ يبدأ الجلسة أو يوقفها من أي تطبيق."
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ যেকোনো অ্যাপ থেকে সেশন শুরু বা বন্ধ করে।"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ starts or stops a session from any app."
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ empieza o para una sesión desde cualquier app."
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ lance ou arrête une session depuis n'importe quelle app."
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ किसी भी ऐप से सत्र शुरू या बंद करता है।"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ memulai atau menghentikan sesi dari aplikasi mana pun."
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ inicia ou para uma sessão em qualquer app."
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ запускает или останавливает сеанс из любого приложения."
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "在任何应用中按 %@ 即可开始或停止专注。"
- }
- }
- }
- },
- "focus.macos" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "وضع التركيز في macOS"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "macOS ফোকাস"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "macOS Focus"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Concentración de macOS"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Concentration de macOS"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "macOS फ़ोकस"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Fokus macOS"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Foco do macOS"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Фокусирование macOS"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "macOS 专注模式"
- }
- }
- }
- },
- "focus.macos-about" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "لا يستطيع أي تطبيق تشغيل وضع التركيز في macOS بنفسه. أنشئ اختصارين في تطبيق الاختصارات بإجراء «تعيين التركيز» (واحد للتشغيل وآخر للإيقاف) واكتب اسميهما هنا: يشغّلهما Coucou عند بدء الجلسة وانتهائها."
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "কোনো অ্যাপ নিজে macOS ফোকাস চালু করতে পারে না। Shortcuts অ্যাপে « Set Focus » অ্যাকশন দিয়ে দুটি শর্টকাট বানান (একটি চালু, একটি বন্ধ) আর তাদের নাম এখানে লিখুন: সেশন শুরু ও শেষে Coucou সেগুলো চালায়।"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "An app can't turn on a macOS Focus by itself. Make two shortcuts in the Shortcuts app with the « Set Focus » action (one on, one off) and type their names here: Coucou runs them when a session starts and ends."
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Una app no puede activar una Concentración de macOS por sí sola. Crea dos atajos en la app Atajos con la acción «Definir concentración» (uno para activar y otro para desactivar) y escribe sus nombres aquí: Coucou los ejecuta al empezar y al terminar una sesión."
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Une app ne peut pas activer une Concentration de macOS toute seule. Crée deux raccourcis dans l'app Raccourcis avec l'action « Définir la concentration » (un pour activer, un pour désactiver) et tape leurs noms ici : Coucou les lance au début et à la fin d'une session."
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "कोई ऐप खुद macOS फ़ोकस चालू नहीं कर सकता। Shortcuts ऐप में « Set Focus » ऐक्शन के साथ दो शॉर्टकट बनाएँ (एक चालू, एक बंद) और उनके नाम यहाँ लिखें: सत्र शुरू और खत्म होने पर Coucou उन्हें चलाता है।"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Aplikasi tidak bisa menyalakan Fokus macOS sendiri. Buat dua pintasan di app Pintasan dengan tindakan « Atur Fokus » (satu menyalakan, satu mematikan) dan ketik namanya di sini: Coucou menjalankannya saat sesi mulai dan selesai."
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Um app não consegue ativar um Foco do macOS sozinho. Crie dois atalhos no app Atalhos com a ação «Definir Foco» (um para ativar, outro para desativar) e digite os nomes aqui: o Coucou os executa no início e no fim de uma sessão."
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Приложение не может само включить режим фокусирования macOS. Создайте две быстрые команды в приложении «Быстрые команды» с действием «Задать фокусирование» (включить и выключить) и введите их названия здесь: Coucou запустит их в начале и в конце сеанса."
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "应用无法自行打开 macOS 的专注模式。在“快捷指令”App 中用“设定专注模式”操作创建两个快捷指令(一个打开,一个关闭),并在这里输入它们的名称:Coucou 会在专注开始和结束时运行它们。"
- }
- }
- }
- },
- "focus.shortcut-on" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "عند البدء"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "শুরু হলে"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "When it starts"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Al empezar"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Au début"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "शुरू होने पर"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Saat mulai"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Ao iniciar"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "При начале"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "开始时"
- }
- }
- }
- },
- "focus.shortcut-off" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "عند الانتهاء"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "শেষ হলে"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "When it ends"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Al terminar"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "À la fin"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "खत्म होने पर"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Saat selesai"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Ao terminar"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "При окончании"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "结束时"
- }
- }
- }
- },
- "focus.shortcut-placeholder" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "اسم الاختصار"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "শর্টকাটের নাম"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Shortcut name"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Nombre del atajo"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Nom du raccourci"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "शॉर्टकट का नाम"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Nama pintasan"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Nome do atalho"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Название команды"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "快捷指令名称"
- }
- }
- }
- },
- "focus.open-shortcuts" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "فتح الاختصارات"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Shortcuts খুলুন"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Open Shortcuts"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Abrir Atajos"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Ouvrir Raccourcis"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Shortcuts खोलें"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Buka Pintasan"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Abrir Atalhos"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Открыть «Быстрые команды»"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "打开快捷指令"
- }
- }
- }
- },
- "focus.projects" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "الوقت لكل مشروع"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "প্রতিটি প্রজেক্টে সময়"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Time per project"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Tiempo por proyecto"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Temps par projet"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "हर प्रोजेक्ट पर समय"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Waktu per proyek"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Tempo por projeto"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Время по проектам"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "每个项目的时间"
- }
- }
- }
- },
- "focus.track" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "احسب وقتي لكل مشروع"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "প্রতিটি প্রজেক্টে আমার সময় গুনুন"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Count my time per project"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Contar mi tiempo por proyecto"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Compter mon temps par projet"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "हर प्रोजेक्ट पर मेरा समय गिनें"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Hitung waktuku per proyek"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Contar meu tempo por projeto"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Считать моё время по проектам"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "统计我在每个项目上的时间"
- }
- }
- }
- },
- "focus.track-about" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "عندما يكون محرر برمجة (VS Code وCursor وXcode وZed…) أو طرفية جلسة وكيل في المقدمة، يُحسب الوقت لمشروعه. لا يُحسب الوقت بعيدًا عن لوحة المفاتيح. يبقى على جهازك لمدة 90 يومًا."
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "কোড এডিটর (VS Code, Cursor, Xcode, Zed…) বা কোনো এজেন্ট সেশনের টার্মিনাল সামনে থাকলে সময় তার প্রজেক্টে যোগ হয়। কিবোর্ড থেকে দূরে থাকার সময় গোনা হয় না। আপনার Mac-এ থাকে, ৯০ দিন।"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "While a code editor (VS Code, Cursor, Xcode, Zed…) or the terminal of an agent session is in front, its project gets the time. Time away from the keyboard does not count. Stays on your Mac, kept 90 days."
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Mientras un editor de código (VS Code, Cursor, Xcode, Zed…) o el terminal de una sesión de agente está delante, su proyecto suma el tiempo. El tiempo lejos del teclado no cuenta. Se queda en tu Mac, 90 días."
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Tant qu'un éditeur de code (VS Code, Cursor, Xcode, Zed…) ou le terminal d'une session d'agent est au premier plan, son projet compte le temps. Le temps loin du clavier ne compte pas. Reste sur ton Mac, gardé 90 jours."
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "जब कोई कोड एडिटर (VS Code, Cursor, Xcode, Zed…) या किसी एजेंट सत्र का टर्मिनल सामने हो, तो समय उसके प्रोजेक्ट में जुड़ता है। कीबोर्ड से दूर बिताया समय नहीं गिना जाता। आपके Mac पर रहता है, 90 दिन तक।"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Selama editor kode (VS Code, Cursor, Xcode, Zed…) atau terminal sesi agen ada di depan, waktunya dihitung untuk proyeknya. Waktu jauh dari keyboard tidak dihitung. Tetap di Mac-mu, disimpan 90 hari."
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Enquanto um editor de código (VS Code, Cursor, Xcode, Zed…) ou o terminal de uma sessão de agente está na frente, o projeto dele conta o tempo. O tempo longe do teclado não conta. Fica no seu Mac, por 90 dias."
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Пока впереди редактор кода (VS Code, Cursor, Xcode, Zed…) или терминал сеанса агента, время идёт его проекту. Время без клавиатуры не считается. Хранится на вашем Mac 90 дней."
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "当代码编辑器(VS Code、Cursor、Xcode、Zed…)或代理会话的终端在最前面时,时间计入它的项目。离开键盘的时间不计算。保存在你的 Mac 上,保留 90 天。"
- }
- }
- }
- },
- "focus.done-today %lld" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "الجلسات المكتملة اليوم: %lld"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "আজ শেষ হওয়া সেশন: %lld"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sessions finished today: %lld"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sesiones terminadas hoy: %lld"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sessions terminées aujourd'hui : %lld"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "आज पूरे हुए सत्र: %lld"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sesi selesai hari ini: %lld"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sessões concluídas hoje: %lld"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Сеансов сегодня: %lld"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "今天完成的专注:%lld"
- }
- }
- }
- },
- "focus.left %@" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "متبقٍ %@"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ বাকি"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ left"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Quedan %@"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Encore %@"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%@ बाकी"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Sisa %@"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Faltam %@"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Осталось %@"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "还剩 %@"
- }
- }
- }
- },
- "focus.break-left %@" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "استراحة، متبقٍ %@"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "বিরতি, %@ বাকি"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Break, %@ left"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Descanso, quedan %@"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Pause, encore %@"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "ब्रेक, %@ बाकी"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Istirahat, sisa %@"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Pausa, faltam %@"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Перерыв, осталось %@"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "休息中,还剩 %@"
- }
- }
- }
- },
- "focus.no-time" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "لا شيء بعد."
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "এখনো কিছু নেই।"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Nothing yet."
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Nada todavía."
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Rien pour l'instant."
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "अभी कुछ नहीं।"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Belum ada."
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Nada ainda."
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Пока ничего."
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "暂无记录。"
- }
- }
- }
- },
- "focus.min %lld" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld د"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld মিনিট"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld min"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld min"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld min"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld मिनट"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld mnt"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld min"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld мин"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld 分钟"
- }
- }
- }
- },
- "focus.hours %lld %lld" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld س %02lld"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld ঘ %02lld"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld h %02lld"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld h %02lld"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld h %02lld"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld घं %02lld"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld j %02lld"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld h %02lld"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld ч %02lld"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "%lld 小时 %02lld"
- }
- }
- }
- },
- "shortcut.focus" : {
- "extractionState" : "manual",
- "localizations" : {
- "ar" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "بدء جلسة تركيز أو إيقافها"
- }
- },
- "bn" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "ফোকাস সেশন শুরু বা বন্ধ করুন"
- }
- },
- "en" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Start or stop a Focus session"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Empezar o parar una sesión de enfoque"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Lancer ou arrêter une session Focus"
- }
- },
- "hi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "फ़ोकस सत्र शुरू या बंद करें"
- }
- },
- "id" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Mulai atau hentikan sesi fokus"
- }
- },
- "pt-BR" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Iniciar ou parar uma sessão de foco"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Начать или остановить сеанс фокуса"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "开始或停止专注"
- }
- }
- }
- },
"shortcut.capture" : {
"extractionState" : "manual",
"localizations" : {
diff --git a/NotchBuddy/Sources/App/AppDelegate.swift b/NotchBuddy/Sources/App/AppDelegate.swift
index 49609160..4321ae2b 100644
--- a/NotchBuddy/Sources/App/AppDelegate.swift
+++ b/NotchBuddy/Sources/App/AppDelegate.swift
@@ -13,7 +13,6 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
#endif
DemoEngine.shared.stop()
HotKeyCenter.shared.unregisterAll()
- ProjectTime.shared.flush()
}
func applicationDidFinishLaunching(_ notification: Notification) {
@@ -30,7 +29,6 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
setupMenuBarItem()
setupIsland()
MachineVitals.shared.start()
- ProjectTime.shared.start()
#if !APPSTORE
// Opened by hand (Finder, Dock, Spotlight): the Coucou window shows. Not at login.
if FlowHubController.openAtLaunch && !FlowHubController.launchedAtLogin() {
diff --git a/NotchBuddy/Sources/App/BotCanvasView.swift b/NotchBuddy/Sources/App/BotCanvasView.swift
index 60821465..782484db 100644
--- a/NotchBuddy/Sources/App/BotCanvasView.swift
+++ b/NotchBuddy/Sources/App/BotCanvasView.swift
@@ -28,10 +28,8 @@ struct BotCanvasView: View {
engine.lookX = look.x
engine.lookY = look.y
engine.particleOverhang = particleOverhang
- // How the Mac feels, and the Focus headphones (MochiMood.swift).
+ // How the Mac feels (MochiMood.swift).
engine.moodTarget = MachineVitals.shared.mood
- engine.headphonesTarget = FocusSession.shared.phase == .focus
- && !(state.mode == .expanded && state.view == .wardrobe) ? 1 : 0
// Widen slot when file is hovering over the mailbox (morph > 0.5)
// Open mouth (hover=0.20R) when file dragged over box; close when not
if engine.morph > 0.3 {
@@ -79,9 +77,7 @@ struct BotCanvasView: View {
engine.setDancing(dancing)
let isWardrobe = state.mode == .expanded && state.view == .wardrobe
let isFocusMain = state.focusId == state.mainPillId || state.focusId == nil
- // A Focus session: headphones only, the outfit comes off (the wardrobe still shows it).
- let showOutfit = (isFocusMain || state.mode != .expanded || isWardrobe)
- && (FocusSession.shared.phase != .focus || isWardrobe)
+ let showOutfit = isFocusMain || state.mode != .expanded || isWardrobe
engine.setOutfit(showOutfit ? state.resolvedOutfit : .none,
animated: state.view != .wardrobe)
@@ -192,8 +188,7 @@ struct BotCanvasView: View {
engine.setState(state.effectiveState, force: true)
let isWardrobe = state.mode == .expanded && state.view == .wardrobe
let isFocusMain = state.focusId == state.mainPillId || state.focusId == nil
- let showOutfit = (isFocusMain || state.mode != .expanded || isWardrobe)
- && (FocusSession.shared.phase != .focus || isWardrobe)
+ let showOutfit = isFocusMain || state.mode != .expanded || isWardrobe
engine.setOutfit(showOutfit ? state.resolvedOutfit : .none, animated: false)
}
}
diff --git a/NotchBuddy/Sources/App/DesktopMochi.swift b/NotchBuddy/Sources/App/DesktopMochi.swift
index 60f29680..d7d30485 100644
--- a/NotchBuddy/Sources/App/DesktopMochi.swift
+++ b/NotchBuddy/Sources/App/DesktopMochi.swift
@@ -37,10 +37,9 @@ struct DesktopBotView: View {
engine.lookX = tanh((appState.mousePosition.x - viewState.lookOrigin.x) / 260)
engine.lookY = -tanh((appState.mousePosition.y - viewState.lookOrigin.y) / 200)
engine.moodTarget = MachineVitals.shared.mood
- engine.headphonesTarget = FocusSession.shared.phase == .focus ? 1 : 0
// Desktop Mochi is always the "main" Mochi — always dressed
- engine.setOutfit(FocusSession.shared.wear(appState.resolvedOutfit), animated: true)
+ engine.setOutfit(appState.resolvedOutfit, animated: true)
// Dance when music plays (same rules as compact mode)
let dancing: Bool = {
@@ -88,7 +87,7 @@ struct DesktopBotView: View {
}
.onAppear {
engine.setState(appState.effectiveState, force: true)
- engine.setOutfit(FocusSession.shared.wear(appState.resolvedOutfit), animated: false)
+ engine.setOutfit(appState.resolvedOutfit, animated: false)
}
}
}
@@ -186,7 +185,7 @@ final class DesktopMochiController {
// Build engine + hosting view (autoresizingMask lets it grow with the panel animation)
let eng = BotEngine()
eng.setState(AppState.shared.effectiveState, force: true)
- eng.setOutfit(FocusSession.shared.wear(AppState.shared.resolvedOutfit), animated: false)
+ eng.setOutfit(AppState.shared.resolvedOutfit, animated: false)
self.engine = eng
let vs = DesktopBotViewState()
@@ -270,7 +269,7 @@ final class DesktopMochiController {
let eng = BotEngine()
eng.setState(AppState.shared.effectiveState, force: true)
- eng.setOutfit(FocusSession.shared.wear(AppState.shared.resolvedOutfit), animated: false)
+ eng.setOutfit(AppState.shared.resolvedOutfit, animated: false)
self.engine = eng
let vs = DesktopBotViewState()
diff --git a/NotchBuddy/Sources/App/FlowHub.swift b/NotchBuddy/Sources/App/FlowHub.swift
index 42c9a2f2..99ae08d1 100644
--- a/NotchBuddy/Sources/App/FlowHub.swift
+++ b/NotchBuddy/Sources/App/FlowHub.swift
@@ -6,12 +6,12 @@ import SwiftUI
/// The pages of the Coucou window: Flow (the dictation, the Notetaker) and the notch's settings.
enum HubPage: String, CaseIterable, Identifiable {
case dictation, notes, insights, dictionary, snippets, styles, settings
- case general, pills, agents, chat, integrations, voice, focus, shortcuts
+ case general, pills, agents, chat, integrations, voice, shortcuts
var id: String { rawValue }
static let flowPages: [HubPage] = [.dictation, .notes, .insights, .dictionary, .snippets, .styles, .settings]
- static let notchPages: [HubPage] = [.general, .pills, .agents, .chat, .integrations, .voice, .focus, .shortcuts]
+ static let notchPages: [HubPage] = [.general, .pills, .agents, .chat, .integrations, .voice, .shortcuts]
/// The section of Settings this page shows, for the notch's pages.
var settingsSection: String? {
@@ -22,7 +22,6 @@ enum HubPage: String, CaseIterable, Identifiable {
case .chat: return "chat"
case .integrations: return "integrations"
case .voice: return "voice"
- case .focus: return "focus"
case .shortcuts: return "shortcuts"
default: return nil
}
@@ -41,7 +40,6 @@ enum HubPage: String, CaseIterable, Identifiable {
case .chat: return String(localized: "Chat")
case .integrations: return String(localized: "Integrations")
case .voice: return String(localized: "Voice")
- case .focus: return String(localized: "Focus")
case .shortcuts: return String(localized: "Shortcuts")
case .dictation: return String(localized: "hub.page.dictation")
case .notes: return String(localized: "hub.page.notes")
@@ -68,7 +66,6 @@ enum HubPage: String, CaseIterable, Identifiable {
case .chat: return "bubble.left.and.bubble.right"
case .integrations: return "puzzlepiece.extension"
case .voice: return "waveform"
- case .focus: return "headphones"
case .shortcuts: return "keyboard"
}
}
@@ -120,7 +117,6 @@ extension HubPage {
case .chat: return String(localized: "hub.notch.chat")
case .integrations: return String(localized: "hub.notch.integrations")
case .voice: return String(localized: "hub.notch.voice")
- case .focus: return String(localized: "hub.notch.focus")
case .shortcuts: return String(localized: "hub.notch.shortcuts")
default: return nil
}
diff --git a/NotchBuddy/Sources/App/FlowHubMochis.swift b/NotchBuddy/Sources/App/FlowHubMochis.swift
index f2be419c..09cb13d6 100644
--- a/NotchBuddy/Sources/App/FlowHubMochis.swift
+++ b/NotchBuddy/Sources/App/FlowHubMochis.swift
@@ -262,8 +262,6 @@ struct HubHeroTheme {
return .init(color: Color(hex: "#7C5CFF"), cast: [m("#7C5CFF", 54, 0.15), m("#22D3EE", 46, 0.55), m("#F7B32B", 42, 0.95)])
case .voice:
return .init(color: Color(hex: "#F97316"), cast: [m("#F97316", 60, 0.3), m("#F5F6F8", 48, 0.85, outfit: .roundGlasses)])
- case .focus:
- return .init(color: Color(hex: "#A78BFA"), cast: [m("#A78BFA", 58, 0.25, state: .working, roams: false), m("#F5F6F8", 46, 0.8, state: .sleeping, roams: false)])
case .shortcuts:
return .init(color: Color(hex: "#6366F1"), cast: [m("#6366F1", 56, 0.2, outfit: .sunglasses), m("#F5F6F8", 46, 0.8)])
}
diff --git a/NotchBuddy/Sources/App/FocusSession.swift b/NotchBuddy/Sources/App/FocusSession.swift
deleted file mode 100644
index 029d7759..00000000
--- a/NotchBuddy/Sources/App/FocusSession.swift
+++ /dev/null
@@ -1,177 +0,0 @@
-import AppKit
-import Foundation
-
-/// A Focus session: a timer in the island (25 minutes by default), Mochi with his headphones on,
-/// and Coucou keeping quiet until it ends. A permission request or a question from an agent still
-/// comes through: an agent must never wait on a timer. Then a short break, and back to normal.
-///
-/// One timer for the end of the session, nothing ticking in between: the island draws the time
-/// left only while it is on screen.
-@MainActor
-final class FocusSession: ObservableObject {
- static let shared = FocusSession()
-
- enum Phase: Equatable { case off, focus, rest }
-
- @Published private(set) var phase: Phase = .off
- /// When the session (or the break) ends.
- @Published private(set) var endsAt: Date? = nil
- /// Alerts held back during the session (finished or failed turns).
- @Published private(set) var held = 0
-
- @Published var minutes: Int {
- didSet { UserDefaults.standard.set(minutes, forKey: Self.minutesKey) }
- }
- @Published var breakMinutes: Int {
- didSet { UserDefaults.standard.set(breakMinutes, forKey: Self.breakKey) }
- }
- /// Shortcuts (the macOS app) run when a session starts and ends, to turn a Focus of macOS on
- /// and off: an app can't do that by itself. Empty: none.
- @Published var shortcutOn: String {
- didSet { UserDefaults.standard.set(shortcutOn, forKey: Self.shortcutOnKey) }
- }
- @Published var shortcutOff: String {
- didSet { UserDefaults.standard.set(shortcutOff, forKey: Self.shortcutOffKey) }
- }
-
- static let minutesKey = "focusMinutes"
- static let breakKey = "focusBreakMinutes"
- static let shortcutOnKey = "focusShortcutOn"
- static let shortcutOffKey = "focusShortcutOff"
- private static let doneKey = "focusDoneByDay"
-
- /// The sounds that still play during a session: what an agent waiting on you makes.
- static let soundsDuringFocus: Set<String> = ["approval", "question", "approve"]
-
- private var work: DispatchWorkItem?
-
- private init() {
- let ud = UserDefaults.standard
- minutes = max(1, ud.object(forKey: Self.minutesKey) as? Int ?? 25)
- breakMinutes = max(0, ud.object(forKey: Self.breakKey) as? Int ?? 5)
- shortcutOn = ud.string(forKey: Self.shortcutOnKey) ?? ""
- shortcutOff = ud.string(forKey: Self.shortcutOffKey) ?? ""
- }
-
- /// Coucou keeps quiet: no sounds, the island no longer opens by itself.
- var isQuiet: Bool { phase == .focus }
-
- /// What Mochi wears: nothing but his headphones during a session.
- func wear(_ outfit: Outfit) -> Outfit { phase == .focus ? .none : outfit }
-
- // MARK: - Starting and stopping
-
- func start(minutes requested: Int? = nil) {
- let length = min(240, max(1, requested ?? minutes))
- SoundEngine.shared.play("tick")
- NotificationCenter.default.post(name: .triggerEmote, object: BotEmote.happy)
- phase = .focus
- held = 0
- let end = Date().addingTimeInterval(TimeInterval(length * 60))
- endsAt = end
- schedule(at: end) { [weak self] in self?.finishFocus() }
- runShortcut(shortcutOn)
- }
-
- /// Ends the session or the break now.
- func stop() {
- work?.cancel()
- work = nil
- if phase == .focus { runShortcut(shortcutOff) }
- phase = .off
- endsAt = nil
- SoundEngine.shared.play("close")
- }
-
- /// The island's Focus button: start, or stop what is running.
- func toggle() {
- if phase == .off { start() } else { stop() }
- }
-
- /// An alert that would have opened the island, kept for the end of the session.
- func noteHeld() { held += 1 }
-
- private func finishFocus() {
- runShortcut(shortcutOff)
- countDone()
- if breakMinutes > 0 {
- phase = .rest
- let end = Date().addingTimeInterval(TimeInterval(breakMinutes * 60))
- endsAt = end
- schedule(at: end) { [weak self] in self?.finishBreak() }
- } else {
- phase = .off
- endsAt = nil
- }
- SoundEngine.shared.play("finish")
- NotificationCenter.default.post(name: .triggerEmote, object: BotEmote.proud)
- NotificationCenter.default.post(name: .hookReveal, object: nil)
- }
-
- private func finishBreak() {
- phase = .off
- endsAt = nil
- held = 0
- SoundEngine.shared.play("pop")
- NotificationCenter.default.post(name: .triggerEmote, object: BotEmote.wink)
- NotificationCenter.default.post(name: .hookReveal, object: nil)
- }
-
- private func schedule(at date: Date, _ action: @escaping @MainActor () -> Void) {
- work?.cancel()
- let item = DispatchWorkItem { MainActor.assumeIsolated { action() } }
- work = item
- DispatchQueue.main.asyncAfter(deadline: .now() + max(0, date.timeIntervalSinceNow), execute: item)
- }
-
- // MARK: - Reading it
-
- /// "18:42": the time left, rounded up to the second.
- func remainingText(at now: Date) -> String {
- guard let end = endsAt else { return "" }
- let left = max(0, Int(end.timeIntervalSince(now).rounded(.up)))
- return Self.clock(left)
- }
-
- /// 0…1: how much of the session or break is done.
- func progress(at now: Date) -> Double {
- guard let end = endsAt else { return 0 }
- let total = Double((phase == .rest ? breakMinutes : minutes) * 60)
- guard total > 0 else { return 0 }
- return min(1, max(0, 1 - end.timeIntervalSince(now) / total))
- }
-
- static func clock(_ seconds: Int) -> String {
- let h = seconds / 3600, m = (seconds % 3600) / 60, s = seconds % 60
- return h > 0 ? String(format: "%d:%02d:%02d", h, m, s) : String(format: "%d:%02d", m, s)
- }
-
- /// Sessions finished today.
- var doneToday: Int {
- let byDay = UserDefaults.standard.dictionary(forKey: Self.doneKey) as? [String: Int] ?? [:]
- return byDay[ProjectTime.dayKey(Date())] ?? 0
- }
-
- private func countDone() {
- var byDay = UserDefaults.standard.dictionary(forKey: Self.doneKey) as? [String: Int] ?? [:]
- let today = ProjectTime.dayKey(Date())
- byDay = byDay.filter { $0.key >= ProjectTime.dayKey(Date().addingTimeInterval(-30 * 86400)) }
- byDay[today, default: 0] += 1
- UserDefaults.standard.set(byDay, forKey: Self.doneKey)
- }
-
- // MARK: - macOS Focus through Shortcuts
-
- private func runShortcut(_ name: String) {
- #if !APPSTORE
- let trimmed = name.trimmingCharacters(in: .whitespacesAndNewlines)
- guard !trimmed.isEmpty else { return }
- let task = Process()
- task.executableURL = URL(fileURLWithPath: "/usr/bin/shortcuts")
- task.arguments = ["run", trimmed]
- task.standardOutput = FileHandle.nullDevice
- task.standardError = FileHandle.nullDevice
- do { try task.run() } catch { appendAppLog("nb.log", "[Focus] shortcut \(trimmed) failed: \(error)") }
- #endif
- }
-}
diff --git a/NotchBuddy/Sources/App/FocusSettingsView.swift b/NotchBuddy/Sources/App/FocusSettingsView.swift
deleted file mode 100644
index 52f04e90..00000000
--- a/NotchBuddy/Sources/App/FocusSettingsView.swift
+++ /dev/null
@@ -1,172 +0,0 @@
-import SwiftUI
-
-/// Settings → Focus: the session's length, macOS Focus through Shortcuts, and the time spent
-/// on each project.
-struct FocusSettingsView: View {
- @ObservedObject private var focus = FocusSession.shared
- @ObservedObject private var time = ProjectTime.shared
- @State private var period: Period = .today
-
- enum Period: String, CaseIterable, Identifiable {
- case today, week
- var id: String { rawValue }
- var label: String {
- self == .today ? String(localized: "focus.today") : String(localized: "focus.week")
- }
- var start: Date {
- let today = Calendar.current.startOfDay(for: Date())
- return self == .today ? today : (Calendar.current.date(byAdding: .day, value: -6, to: today) ?? today)
- }
- }
-
- var body: some View {
- GroupBox(String(localized: "Focus")) {
- VStack(alignment: .leading, spacing: 10) {
- Text("focus.about")
- .font(.system(size: 11))
- .foregroundColor(.secondary)
- .fixedSize(horizontal: false, vertical: true)
- HStack(spacing: 8) {
- Text("focus.length")
- Stepper(value: $focus.minutes, in: 5...180, step: 5) {
- Text(String(format: String(localized: "focus.minutes %lld"), focus.minutes))
- .monospacedDigit()
- }
- .fixedSize()
- }
- HStack(spacing: 8) {
- Text("focus.break")
- Stepper(value: $focus.breakMinutes, in: 0...30) {
- Text(focus.breakMinutes == 0 ? String(localized: "focus.no-break")
- : String(format: String(localized: "focus.minutes %lld"), focus.breakMinutes))
- .monospacedDigit()
- }
- .fixedSize()
- }
- HStack(spacing: 10) {
- Button(focus.phase == .off ? String(localized: "focus.start") : String(localized: "focus.stop")) {
- focus.toggle()
- }
- .buttonStyle(.borderedProminent)
- TimelineView(.periodic(from: .now, by: 1)) { timeline in
- Text(verbatim: status(at: timeline.date))
- .font(.system(size: 11))
- .foregroundColor(.secondary)
- .monospacedDigit()
- }
- }
- Text(String(format: String(localized: "focus.shortcut-hint %@"),
- ShortcutLogic.displayString(for: ShortcutLogic.hotKey(for: .focusToggle))))
- .font(.system(size: 11))
- .foregroundColor(.secondary)
- }
- .padding(6)
- }
-
- #if !APPSTORE
- GroupBox(String(localized: "focus.macos")) {
- VStack(alignment: .leading, spacing: 10) {
- Text("focus.macos-about")
- .font(.system(size: 11))
- .foregroundColor(.secondary)
- .fixedSize(horizontal: false, vertical: true)
- HStack(spacing: 8) {
- Text("focus.shortcut-on")
- .frame(width: 120, alignment: .leading)
- TextField(String(localized: "focus.shortcut-placeholder"), text: $focus.shortcutOn)
- .textFieldStyle(.roundedBorder)
- .frame(maxWidth: 260)
- }
- HStack(spacing: 8) {
- Text("focus.shortcut-off")
- .frame(width: 120, alignment: .leading)
- TextField(String(localized: "focus.shortcut-placeholder"), text: $focus.shortcutOff)
- .textFieldStyle(.roundedBorder)
- .frame(maxWidth: 260)
- }
- Button(String(localized: "focus.open-shortcuts")) {
- if let url = URL(string: "shortcuts://") { NSWorkspace.shared.open(url) }
- }
- }
- .padding(6)
- }
- #endif
-
- GroupBox(String(localized: "focus.projects")) {
- VStack(alignment: .leading, spacing: 10) {
- Toggle(String(localized: "focus.track"), isOn: Binding(get: { time.enabled }, set: { time.enabled = $0 }))
- Text("focus.track-about")
- .font(.system(size: 11))
- .foregroundColor(.secondary)
- .fixedSize(horizontal: false, vertical: true)
- if time.enabled {
- Picker("", selection: $period) {
- ForEach(Period.allCases) { Text($0.label).tag($0) }
- }
- .pickerStyle(.segmented)
- .labelsHidden()
- .fixedSize()
- ProjectTimeBars(rows: time.totals(since: period.start))
- Button(String(localized: "Clear history")) { time.clear() }
- }
- }
- .padding(6)
- }
- }
-
- private func status(at now: Date) -> String {
- switch focus.phase {
- case .off:
- return String(format: String(localized: "focus.done-today %lld"), focus.doneToday)
- case .focus:
- return String(format: String(localized: "focus.left %@"), focus.remainingText(at: now))
- case .rest:
- return String(format: String(localized: "focus.break-left %@"), focus.remainingText(at: now))
- }
- }
-}
-
-/// The projects you spent the most time on, with a bar each.
-private struct ProjectTimeBars: View {
- let rows: [(project: String, seconds: Double)]
-
- var body: some View {
- let top = Array(rows.prefix(8))
- let most = max(1, top.first?.seconds ?? 1)
- if top.isEmpty {
- Text("focus.no-time")
- .font(.system(size: 12))
- .foregroundColor(.secondary)
- }
- ForEach(top, id: \.project) { row in
- VStack(alignment: .leading, spacing: 4) {
- HStack {
- Text(verbatim: row.project)
- .font(.system(size: 12, weight: .medium))
- .lineLimit(1)
- Spacer()
- Text(verbatim: Self.duration(row.seconds))
- .font(.system(size: 12))
- .foregroundColor(.secondary)
- .monospacedDigit()
- }
- GeometryReader { geo in
- ZStack(alignment: .leading) {
- Capsule().fill(Color.primary.opacity(0.08))
- Capsule().fill(Color(hex: "#A78BFA"))
- .frame(width: max(4, geo.size.width * row.seconds / most))
- }
- }
- .frame(height: 6)
- }
- .frame(maxWidth: 420)
- }
- }
-
- /// "3 h 12" or "18 min".
- static func duration(_ seconds: Double) -> String {
- let minutes = Int((seconds / 60).rounded())
- if minutes < 60 { return String(format: String(localized: "focus.min %lld"), minutes) }
- return String(format: String(localized: "focus.hours %lld %lld"), minutes / 60, minutes % 60)
- }
-}
diff --git a/NotchBuddy/Sources/App/HookServer.swift b/NotchBuddy/Sources/App/HookServer.swift
index 3841430f..3d6c37b0 100644
--- a/NotchBuddy/Sources/App/HookServer.swift
+++ b/NotchBuddy/Sources/App/HookServer.swift
@@ -708,11 +708,6 @@ final class HookServer: @unchecked Sendable {
@MainActor
private func expandIfNeeded(to view: IslandView) {
let state = AppState.shared
- // Focus session: only a permission request or a question opens the island.
- if FocusSession.shared.isQuiet && view != .approval && view != .question {
- if view == .finished || view == .error { FocusSession.shared.noteHeld() }
- return
- }
let isAlert: Bool
switch view {
case .approval, .question, .finished, .error, .confused: isAlert = true
diff --git a/NotchBuddy/Sources/App/IslandFocusViews.swift b/NotchBuddy/Sources/App/IslandFocusViews.swift
deleted file mode 100644
index ccfc2d0a..00000000
--- a/NotchBuddy/Sources/App/IslandFocusViews.swift
+++ /dev/null
@@ -1,145 +0,0 @@
-import SwiftUI
-
-// MARK: - How the Mac is doing (under the island)
-
-/// A small line under the island while the pointer is on Mochi, when the Mac makes him react:
-/// "CPU 94 % · node, Google Chrome", "Your Mac is hot", "Battery 14 %".
-struct VitalsHoverLine: View {
- let islandW: CGFloat
- let islandH: CGFloat
- @ObservedObject private var vitals = MachineVitals.shared
-
- var body: some View {
- let show = vitals.hovered && vitals.summary != nil
- ZStack {
- if show, let text = vitals.summary {
- HStack(spacing: 6) {
- Circle()
- .fill(dotColor)
- .frame(width: 6, height: 6)
- Text(verbatim: text)
- .font(.system(size: 11, weight: .semibold))
- .foregroundColor(Color(hex: "#E1E3E6"))
- .lineLimit(1)
- .fixedSize()
- }
- .padding(.horizontal, 10)
- .padding(.vertical, 5)
- .background(Capsule().fill(Color.black.opacity(0.92)))
- .overlay(Capsule().stroke(Color.white.opacity(0.12), lineWidth: 1))
- .transition(.opacity.combined(with: .offset(y: -4)))
- }
- }
- .animation(.easeOut(duration: 0.18), value: show)
- .position(x: islandW / 2, y: islandH + 18)
- .allowsHitTesting(false)
- }
-
- private var dotColor: Color {
- let m = vitals.mood
- if m.hot > 0 { return Color(hex: "#FF6B4A") }
- if m.busy > 0 { return Color(hex: "#3B9EFF") }
- if m.full > 0 { return Color(hex: "#A78BFA") }
- return Color(hex: "#F5A524")
- }
-}
-
-// MARK: - Focus in the compact island
-
-/// The compact island's right side: the time left of a Focus session (or its break) in place
-/// of the small Mochis of the pills.
-struct CompactFocusOrGrid: View {
- @ObservedObject var state: AppState
- let islandW: CGFloat
- let islandH: CGFloat
- @ObservedObject private var focus = FocusSession.shared
-
- var body: some View {
- if focus.phase == .off {
- CompactMiniGrid(state: state)
- .scaleEffect(IslandRestingLayout(width: islandW, height: islandH).miniGridScale)
- .position(x: islandW - 40, y: islandH / 2)
- .transition(.opacity)
- } else {
- TimelineView(.periodic(from: .now, by: 1)) { timeline in
- Text(verbatim: focus.remainingText(at: timeline.date))
- .font(.system(size: 11, weight: .semibold, design: .rounded))
- .monospacedDigit()
- .foregroundColor(FocusColors.tint(focus.phase))
- .fixedSize()
- }
- .position(x: islandW - 38, y: islandH / 2)
- .transition(.opacity)
- }
- }
-}
-
-enum FocusColors {
- /// Violet during a session, green during the break.
- static func base(_ phase: FocusSession.Phase) -> Color {
- phase == .rest ? Color(hex: "#34D399") : Color(hex: "#A78BFA")
- }
- static func tint(_ phase: FocusSession.Phase) -> Color {
- phase == .rest ? Color(hex: "#6EE7B7") : Color(hex: "#C4B5FD")
- }
-}
-
-// MARK: - Focus in the island's header
-
-/// The header's timer: a click starts a Focus session; while it runs, the time left, and a click
-/// asks "Stop?" (a second click stops it).
-struct FocusHeaderButton: View {
- @ObservedObject private var focus = FocusSession.shared
- @State private var hovered = false
- @State private var confirmStop = false
-
- var body: some View {
- Button(action: tap) {
- if focus.phase == .off {
- Image(systemName: "timer")
- .font(.system(size: 14))
- .foregroundColor(hovered ? Color(hex: "#F5F6F8") : Color(hex: "#8E939C"))
- } else {
- TimelineView(.periodic(from: .now, by: 1)) { timeline in
- let color = FocusColors.base(focus.phase)
- HStack(spacing: 4) {
- Image(systemName: focus.phase == .focus ? "headphones" : "cup.and.saucer.fill")
- .font(.system(size: 9, weight: .bold))
- Text(verbatim: confirmStop ? String(localized: "focus.stop?")
- : focus.remainingText(at: timeline.date))
- .font(.system(size: 10, weight: .semibold))
- .monospacedDigit()
- .fixedSize()
- }
- .foregroundColor(FocusColors.tint(focus.phase))
- .padding(.horizontal, 8)
- .padding(.vertical, 4)
- .background(Capsule().fill(color.opacity(hovered || confirmStop ? 0.26 : 0.16)))
- .overlay(Capsule().stroke(color.opacity(0.55), lineWidth: 1))
- }
- }
- }
- .buttonStyle(.plain)
- .onHover { hovered = $0 }
- .help(focus.phase == .off
- ? String(format: String(localized: "focus.start-help %lld"), focus.minutes)
- : String(localized: "focus.stop-help"))
- }
-
- private func tap() {
- if focus.phase == .off {
- focus.start()
- return
- }
- if confirmStop {
- focus.stop()
- confirmStop = false
- } else {
- confirmStop = true
- Task { @MainActor in
- try? await Task.sleep(for: .seconds(3))
- confirmStop = false
- }
- }
- }
-}
diff --git a/NotchBuddy/Sources/App/IslandRootView.swift b/NotchBuddy/Sources/App/IslandRootView.swift
index 3a12fdc8..bce6fc25 100644
--- a/NotchBuddy/Sources/App/IslandRootView.swift
+++ b/NotchBuddy/Sources/App/IslandRootView.swift
@@ -125,8 +125,10 @@ struct IslandContainer: View {
Group {
if state.mode == .compact {
- // A Focus session shows its time left in place of the pills.
- CompactFocusOrGrid(state: state, islandW: islandWidth, islandH: islandHeight)
+ CompactMiniGrid(state: state)
+ .scaleEffect(IslandRestingLayout(width: islandWidth, height: islandHeight).miniGridScale)
+ .position(x: islandWidth - 40, y: islandHeight / 2)
+ .transition(.opacity)
}
}
.animation(.easeInOut(duration: 0.25), value: state.mode == .compact)
@@ -561,9 +563,6 @@ struct IslandHeader: View {
}
#endif
HStack(spacing: 14) {
- // Focus: start a session, or the time left of the one running.
- FocusHeaderButton()
-
Button(action: {
withAnimation(.spring(response: 0.3, dampingFraction: 0.8)) {
state.view = .settings
diff --git a/NotchBuddy/Sources/App/IslandStateMachine.swift b/NotchBuddy/Sources/App/IslandStateMachine.swift
index e1bc6bbf..762e01c3 100644
--- a/NotchBuddy/Sources/App/IslandStateMachine.swift
+++ b/NotchBuddy/Sources/App/IslandStateMachine.swift
@@ -20,9 +20,6 @@ final class IslandStateMachine {
/// When non-nil and returns true, timers and mouse-leave never auto-collapse or hide the island.
var isHeldOpen: (() -> Bool)?
- /// When non-nil and returns true, the compact island does not hide by itself (a Focus
- /// session shows its timer there).
- var keepsPetit: (() -> Bool)?
/// home → petit delay (seconds), kept in sync with the auto-close preference.
var homeToPetitDelay: TimeInterval = 15 {
@@ -209,8 +206,7 @@ final class IslandStateMachine {
private func schedulePetitHide() {
petitHideWork?.cancel()
let item = DispatchWorkItem { [weak self] in
- guard let self, self.state == .petit, !(self.isHeldOpen?() ?? false),
- !(self.keepsPetit?() ?? false) else { return }
+ guard let self, self.state == .petit, !(self.isHeldOpen?() ?? false) else { return }
self.transition(to: .hidden)
}
petitHideWork = item
diff --git a/NotchBuddy/Sources/App/IslandWindowController.swift b/NotchBuddy/Sources/App/IslandWindowController.swift
index 798877ea..ed847441 100644
--- a/NotchBuddy/Sources/App/IslandWindowController.swift
+++ b/NotchBuddy/Sources/App/IslandWindowController.swift
@@ -15,7 +15,6 @@ final class IslandWindowController: NSWindowController {
private var frameTimer: Timer?
private var keyMonitor: Any?
private var viewSubscription: AnyCancellable?
- private var focusSubscription: AnyCancellable?
private var displaySubscription: AnyCancellable?
private var autoCloseSubscription: AnyCancellable?
private var openOnHoverSubscription: AnyCancellable?
@@ -328,20 +327,6 @@ final class IslandWindowController: NSWindowController {
// An approval, or an email prepared by voice, stays open until I click.
fsm.isHeldOpen = { AppState.shared.pendingApproval != nil || AppState.shared.voiceMailDraft != nil }
- // A Focus session keeps the compact island (and its timer) on screen until it ends.
- fsm.keepsPetit = { FocusSession.shared.phase != .off }
- focusSubscription = FocusSession.shared.$phase
- .removeDuplicates()
- .receive(on: DispatchQueue.main)
- .sink { [weak self] phase in
- guard let self else { return }
- if phase != .off {
- self.fsm.reveal()
- } else if self.fsm.state == .petit && !self.wasInIsland {
- self.fsm.mouseLeft()
- }
- }
-
// Voice: wake phrase detected → open listening island
#if !APPSTORE
NotificationCenter.default.addObserver(
@@ -728,9 +713,6 @@ final class IslandWindowController: NSWindowController {
VoiceEngine.shared.startListeningDirectly()
#endif
- case .focusToggle:
- FocusSession.shared.toggle()
-
case .captureScreen:
#if !APPSTORE
ScreenCapture.shared.begin()
@@ -889,13 +871,13 @@ final class IslandWindowController: NSWindowController {
// Hook server compact reveal (non-alert work events: session start, tool use, etc.)
NotificationCenter.default.addObserver(forName: .hookReveal, object: nil, queue: .main) { [weak self] _ in
- guard let self, !FocusSession.shared.isQuiet else { return }
+ guard let self else { return }
self.fsm.reveal()
}
// Music started playing: reveal silently (no peek sound)
NotificationCenter.default.addObserver(forName: .musicReveal, object: nil, queue: .main) { [weak self] _ in
- guard let self, !FocusSession.shared.isQuiet else { return }
+ guard let self else { return }
self.silentNextReveal = true
self.fsm.reveal()
self.silentNextReveal = false
diff --git a/NotchBuddy/Sources/App/ProjectTime.swift b/NotchBuddy/Sources/App/ProjectTime.swift
deleted file mode 100644
index 94311ed6..00000000
--- a/NotchBuddy/Sources/App/ProjectTime.swift
+++ /dev/null
@@ -1,197 +0,0 @@
-import AppKit
-import ApplicationServices
-import CoreGraphics
-
-/// Time per project, like WakaTime but without anything leaving the Mac: while a code editor
-/// (VS Code, Cursor, Xcode, Zed…) or a terminal running an agent is in front, its project gets
-/// the time. Event-driven: Coucou looks when the app in front changes, never on a timer.
-///
-/// The project is the folder open in the editor (read from its window title) or the folder a
-/// Claude Code session runs in. Kept 90 days in Application Support/NotchBuddy/projecttime.json.
-@MainActor
-final class ProjectTime: ObservableObject {
- static let shared = ProjectTime()
-
- static let enabledKey = "projectTimeEnabled"
-
- /// Seconds per project, per day ("2026-10-15" → ["landing": 4320]).
- @Published private(set) var days: [String: [String: Double]] = [:]
-
- var enabled: Bool {
- get { UserDefaults.standard.object(forKey: Self.enabledKey) as? Bool ?? true }
- set {
- UserDefaults.standard.set(newValue, forKey: Self.enabledKey)
- objectWillChange.send()
- if newValue { follow(NSWorkspace.shared.frontmostApplication) } else { close(at: Date()) }
- }
- }
-
- /// The project in front, and since when.
- private var current: (project: String, since: Date)?
- private var started = false
-
- private static let storageURL: URL = {
- let support = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask)[0]
- return support.appendingPathComponent("NotchBuddy/projecttime.json")
- }()
-
- private init() { load() }
-
- func start() {
- guard !started else { return }
- started = true
- let ws = NSWorkspace.shared.notificationCenter
- ws.addObserver(forName: NSWorkspace.didActivateApplicationNotification, object: nil, queue: .main) { note in
- let pid = (note.userInfo?[NSWorkspace.applicationUserInfoKey] as? NSRunningApplication)?.processIdentifier
- MainActor.assumeIsolated {
- ProjectTime.shared.follow(pid.flatMap { NSRunningApplication(processIdentifier: $0) })
- }
- }
- for name in [NSWorkspace.screensDidSleepNotification, NSWorkspace.willSleepNotification] {
- ws.addObserver(forName: name, object: nil, queue: .main) { _ in
- MainActor.assumeIsolated { ProjectTime.shared.close(at: Date()) }
- }
- }
- for name in [NSWorkspace.screensDidWakeNotification, NSWorkspace.didWakeNotification] {
- ws.addObserver(forName: name, object: nil, queue: .main) { _ in
- MainActor.assumeIsolated { ProjectTime.shared.follow(NSWorkspace.shared.frontmostApplication) }
- }
- }
- let dc = DistributedNotificationCenter.default()
- dc.addObserver(forName: NSNotification.Name("com.apple.screenIsLocked"), object: nil, queue: .main) { _ in
- MainActor.assumeIsolated { ProjectTime.shared.close(at: Date()) }
- }
- dc.addObserver(forName: NSNotification.Name("com.apple.screenIsUnlocked"), object: nil, queue: .main) { _ in
- MainActor.assumeIsolated { ProjectTime.shared.follow(NSWorkspace.shared.frontmostApplication) }
- }
- follow(NSWorkspace.shared.frontmostApplication)
- }
-
- /// Saves what is running (Coucou quits).
- func flush() { close(at: Date()) }
-
- // MARK: - Following the app in front
-
- private func follow(_ app: NSRunningApplication?) {
- let now = Date()
- close(at: now)
- guard enabled, let app, let project = Self.project(for: app) else { return }
- current = (project, now)
- }
-
- private func close(at end: Date) {
- guard let open = current else { return }
- current = nil
- var seconds = end.timeIntervalSince(open.since)
- // Away from the keyboard for more than 5 minutes: that part does not count.
- let idle = Self.secondsIdle()
- if idle > 300 { seconds -= idle }
- guard seconds > 5 else { return }
- let day = Self.dayKey(open.since)
- days[day, default: [:]][open.project, default: 0] += seconds
- save()
- }
-
- // MARK: - Reading it
-
- /// Seconds per project since `start` (today's start, the week's…), the one in front included.
- func totals(since start: Date) -> [(project: String, seconds: Double)] {
- let first = Self.dayKey(start)
- var sum: [String: Double] = [:]
- for (day, projects) in days where day >= first {
- for (project, seconds) in projects { sum[project, default: 0] += seconds }
- }
- if let open = current, open.since >= Calendar.current.startOfDay(for: start) {
- sum[open.project, default: 0] += Date().timeIntervalSince(open.since)
- }
- return sum.map { (project: $0.key, seconds: $0.value) }.sorted { $0.seconds > $1.seconds }
- }
-
- func clear() {
- current = nil
- days = [:]
- save()
- follow(NSWorkspace.shared.frontmostApplication)
- }
-
- static func dayKey(_ date: Date) -> String {
- let c = Calendar.current.dateComponents([.year, .month, .day], from: date)
- return String(format: "%04d-%02d-%02d", c.year ?? 0, c.month ?? 0, c.day ?? 0)
- }
-
- // MARK: - Which project
-
- /// Code editors, by bundle id prefix: the project comes from their window title.
- private static let editors = [
- "com.microsoft.VSCode", "com.todesktop.230313mzl4w4u92", "com.exafunction.windsurf",
- "dev.zed.Zed", "com.apple.dt.Xcode", "com.jetbrains.", "com.sublimetext.", "com.google.antigravity",
- "com.vscodium",
- ]
-
- static func project(for app: NSRunningApplication) -> String? {
- guard let id = app.bundleIdentifier else { return nil }
- if editors.contains(where: { id.hasPrefix($0) }) {
- let title = windowTitle(of: app) ?? ""
- return projectName(fromTitle: title, bundleId: id) ?? app.localizedName
- }
- if TerminalTarget.knownTerminals.contains(id) {
- // The terminal of an agent session: its folder.
- let sessions = AppState.shared.tasks.filter { !$0.isIntegration && $0.sessionCwd != nil }
- let own = sessions.first { $0.hostApp == id } ?? sessions.first
- if let cwd = own?.sessionCwd {
- let name = URL(fileURLWithPath: cwd).lastPathComponent
- return name.isEmpty ? nil : name
- }
- }
- return nil
- }
-
- /// "page.tsx — landing — Visual Studio Code" → "landing"; Xcode's "App — Foo.swift" → "App";
- /// JetBrains' "app – Main.kt" → "app".
- static func projectName(fromTitle title: String, bundleId: String) -> String? {
- let clean = title.trimmingCharacters(in: .whitespacesAndNewlines)
- guard !clean.isEmpty else { return nil }
- if bundleId == "com.apple.dt.Xcode" || bundleId.hasPrefix("com.jetbrains.") {
- let first = clean.components(separatedBy: bundleId.hasPrefix("com.jetbrains.") ? " – " : " — ").first ?? clean
- let name = first.trimmingCharacters(in: .whitespaces)
- return name.isEmpty ? nil : name
- }
- var parts = clean.components(separatedBy: " — ").map { $0.trimmingCharacters(in: .whitespaces) }
- if parts.count > 1 { parts.removeLast() } // the app's name
- let name = parts.last?.trimmingCharacters(in: CharacterSet(charactersIn: "●• ")) ?? ""
- return name.isEmpty ? nil : name
- }
-
- /// The title of the app's front window (Accessibility; nil without it).
- private static func windowTitle(of app: NSRunningApplication) -> String? {
- guard AXIsProcessTrusted() else { return nil }
- let element = AXUIElementCreateApplication(app.processIdentifier)
- var window: CFTypeRef?
- guard AXUIElementCopyAttributeValue(element, kAXFocusedWindowAttribute as CFString, &window) == .success,
- let window, CFGetTypeID(window) == AXUIElementGetTypeID() else { return nil }
- var title: CFTypeRef?
- AXUIElementCopyAttributeValue(window as! AXUIElement, kAXTitleAttribute as CFString, &title)
- return title as? String
- }
-
- private static func secondsIdle() -> Double {
- guard let any = CGEventType(rawValue: ~0) else { return 0 }
- return CGEventSource.secondsSinceLastEventType(.combinedSessionState, eventType: any)
- }
-
- // MARK: - Disk
-
- private func load() {
- guard let data = try? Data(contentsOf: Self.storageURL),
- let decoded = try? JSONDecoder().decode([String: [String: Double]].self, from: data) else { return }
- days = decoded
- }
-
- private func save() {
- let oldest = Self.dayKey(Date().addingTimeInterval(-90 * 86400))
- days = days.filter { $0.key >= oldest }
- let url = Self.storageURL
- try? FileManager.default.createDirectory(at: url.deletingLastPathComponent(), withIntermediateDirectories: true)
- if let data = try? JSONEncoder().encode(days) { try? data.write(to: url, options: .atomic) }
- }
-}
diff --git a/NotchBuddy/Sources/App/SettingsView.swift b/NotchBuddy/Sources/App/SettingsView.swift
index 05899af1..c7663733 100644
--- a/NotchBuddy/Sources/App/SettingsView.swift
+++ b/NotchBuddy/Sources/App/SettingsView.swift
@@ -193,7 +193,6 @@ struct SettingsView: View {
#if !APPSTORE
SettingsSidebarRow(title: "Voice", icon: "mic.fill", color: "#F97316").tag("voice")
#endif
- SettingsSidebarRow(title: "Focus", icon: "headphones", color: "#A78BFA").tag("focus")
SettingsSidebarRow(title: "Shortcuts", icon: "keyboard.fill", color: "#6366F1").tag("shortcuts")
}
.listStyle(.sidebar)
@@ -269,7 +268,6 @@ struct SettingsView: View {
case "integrations": return String(localized: "Integrations")
case "voice": return String(localized: "Voice")
case "shortcuts": return String(localized: "Shortcuts")
- case "focus": return String(localized: "Focus")
default: return String(localized: "General")
}
}
@@ -284,7 +282,6 @@ struct SettingsView: View {
case "voice": voiceSection
#endif
case "shortcuts": ShortcutsSettingsView()
- case "focus": FocusSettingsView()
default: generalSection
}
}
diff --git a/NotchBuddy/Sources/App/ShortcutLogic.swift b/NotchBuddy/Sources/App/ShortcutLogic.swift
index 2de2d2a3..2d3e29b8 100644
--- a/NotchBuddy/Sources/App/ShortcutLogic.swift
+++ b/NotchBuddy/Sources/App/ShortcutLogic.swift
@@ -19,7 +19,6 @@ enum ShortcutAction: String, CaseIterable, Sendable {
case desktopToggle = "desktopToggle" // ⌃⌥D — send Mochi to desktop / bring back
case wardrobeToggle = "wardrobeToggle" // ⌃⌥G — open / close wardrobe
case talkToCoucou = "talkToCoucou" // (unset) — start listening without wake phrase (non-AppStore)
- case focusToggle = "focusToggle" // ⌃⌥F — start / stop a Focus session
case captureScreen = "captureScreen" // ⌃⌥X — capture a part of the screen for Claude (non-AppStore)
// MARK: UserDefaults keys
@@ -52,7 +51,6 @@ enum ShortcutAction: String, CaseIterable, Sendable {
case .desktopToggle: return String(localized: "shortcut.desktop-toggle")
case .wardrobeToggle: return String(localized: "shortcut.wardrobe")
case .talkToCoucou: return String(localized: "shortcut.talk-to-coucou")
- case .focusToggle: return String(localized: "shortcut.focus")
case .captureScreen: return String(localized: "shortcut.capture")
}
}
@@ -111,7 +109,6 @@ enum ShortcutLogic {
.desktopToggle: ShortcutSpec(keyCode: 2, nsFlags: ShortcutSpec.ctrlOpt), // ⌃⌥D
.wardrobeToggle: ShortcutSpec(keyCode: 5, nsFlags: ShortcutSpec.ctrlOpt), // ⌃⌥G
.talkToCoucou: ShortcutSpec(keyCode: 9, nsFlags: ShortcutSpec.ctrlOpt), // ⌃⌥V (disabled by default)
- .focusToggle: ShortcutSpec(keyCode: 3, nsFlags: ShortcutSpec.ctrlOpt), // ⌃⌥F
.captureScreen: ShortcutSpec(keyCode: 7, nsFlags: ShortcutSpec.ctrlOpt), // ⌃⌥X
]
diff --git a/NotchBuddy/Sources/App/SoundEngine.swift b/NotchBuddy/Sources/App/SoundEngine.swift
index a294d04d..1794e706 100644
--- a/NotchBuddy/Sources/App/SoundEngine.swift
+++ b/NotchBuddy/Sources/App/SoundEngine.swift
@@ -104,8 +104,6 @@ final class SoundEngine {
func play(_ name: String) {
guard enabled && AppState.shared.soundEnabled else { return }
- // A Focus session: only what an agent waiting on you makes.
- if FocusSession.shared.isQuiet && !FocusSession.soundsDuringFocus.contains(name) { return }
guard let pool = players[name] else { return }
// Find a player that is not currently playing
let player = pool.first { !$0.isPlaying } ?? pool[0]
diff --git a/NotchBuddy/Sources/App/VitalsHoverLine.swift b/NotchBuddy/Sources/App/VitalsHoverLine.swift
new file mode 100644
index 00000000..9bdf9250
--- /dev/null
+++ b/NotchBuddy/Sources/App/VitalsHoverLine.swift
@@ -0,0 +1,45 @@
+import SwiftUI
+
+// MARK: - How the Mac is doing (under the island)
+
+/// A small line under the island while the pointer is on Mochi, when the Mac makes him react:
+/// "CPU 94 % · node, Google Chrome", "Your Mac is hot", "Battery 14 %".
+struct VitalsHoverLine: View {
+ let islandW: CGFloat
+ let islandH: CGFloat
+ @ObservedObject private var vitals = MachineVitals.shared
+
+ var body: some View {
+ let show = vitals.hovered && vitals.summary != nil
+ ZStack {
+ if show, let text = vitals.summary {
+ HStack(spacing: 6) {
+ Circle()
+ .fill(dotColor)
+ .frame(width: 6, height: 6)
+ Text(verbatim: text)
+ .font(.system(size: 11, weight: .semibold))
+ .foregroundColor(Color(hex: "#E1E3E6"))
+ .lineLimit(1)
+ .fixedSize()
+ }
+ .padding(.horizontal, 10)
+ .padding(.vertical, 5)
+ .background(Capsule().fill(Color.black.opacity(0.92)))
+ .overlay(Capsule().stroke(Color.white.opacity(0.12), lineWidth: 1))
+ .transition(.opacity.combined(with: .offset(y: -4)))
+ }
+ }
+ .animation(.easeOut(duration: 0.18), value: show)
+ .position(x: islandW / 2, y: islandH + 18)
+ .allowsHitTesting(false)
+ }
+
+ private var dotColor: Color {
+ let m = vitals.mood
+ if m.hot > 0 { return Color(hex: "#FF6B4A") }
+ if m.busy > 0 { return Color(hex: "#3B9EFF") }
+ if m.full > 0 { return Color(hex: "#A78BFA") }
+ return Color(hex: "#F5A524")
+ }
+}
diff --git a/NotchBuddy/Sources/App/Voice/ClaudeVoiceBrain.swift b/NotchBuddy/Sources/App/Voice/ClaudeVoiceBrain.swift
index 1ac7f6bb..1cca2404 100644
--- a/NotchBuddy/Sources/App/Voice/ClaudeVoiceBrain.swift
+++ b/NotchBuddy/Sources/App/Voice/ClaudeVoiceBrain.swift
@@ -7,7 +7,7 @@ import Foundation
// the phrase parser or the on-device model: Claude understands any wording, keeps the
// thread of the conversation and calls Coucou's tools to act.
//
-// Tools: pills, music, service_info (Stripe, GitHub, agents…), open_app, prepare_email, focus
+// Tools: pills, music, service_info (Stripe, GitHub, agents…), open_app, prepare_email
// (the island's mail card opens filled in, the user clicks Send) and Anthropic's
// web_search. The conversation lives in memory only and is forgotten with the rest of
// the voice context (90 s after the last turn). Nothing is sent, approved or deleted
@@ -125,7 +125,7 @@ final class ClaudeVoiceBrain {
in one or two short sentences, no markdown, no lists, no emojis, no links.
Act with the tools instead of describing: pills, music, service_info for the user's own data \
(Stripe sales, GitHub, Vercel, Resend, n8n, Notion, Cal.com, agent sessions like Claude Code, \
- plan usage, music), open_app, prepare_email, focus (a Focus session timer), and web_search for anything current \
+ plan usage, music), open_app, prepare_email, and web_search for anything current \
(weather, news, scores, prices, facts you are not sure of). Never invent the user's data.
Email: gather the recipient, the subject and what to say (write the text yourself from what \
the user wants to say, in the language they used), asking for what is missing one short \
@@ -205,18 +205,6 @@ final class ClaudeVoiceBrain {
"required": ["recipient", "subject", "body"],
],
],
- [
- "name": "focus",
- "description": "Start, stop or check a Focus session: a timer in the notch, Mochi with headphones on, Coucou quiet until it ends (permission requests still come through), then a short break.",
- "input_schema": [
- "type": "object",
- "properties": [
- "action": ["type": "string", "enum": ["start", "stop", "status"]],
- "minutes": ["type": "integer", "description": "Length of the session for start (default: the user's setting)."],
- ],
- "required": ["action"],
- ],
- ],
webSearchTool,
]
@@ -305,25 +293,6 @@ final class ClaudeVoiceBrain {
case "prepare_email":
return await prepareEmail(input)
- case "focus":
- let focus = FocusSession.shared
- switch input["action"] as? String ?? "status" {
- case "start":
- let minutes = input["minutes"] as? Int
- focus.start(minutes: minutes)
- return ("Focus session started for \(minutes ?? focus.minutes) minutes. Coucou stays quiet until it ends.", true)
- case "stop":
- guard focus.phase != .off else { return ("No Focus session is running.", false) }
- focus.stop()
- return ("Focus session stopped.", true)
- default:
- switch focus.phase {
- case .off: return ("No Focus session. \(focus.doneToday) finished today.", false)
- case .focus: return ("Focus session running, \(focus.remainingText(at: Date())) left. \(focus.held) alerts held back.", false)
- case .rest: return ("On a break, \(focus.remainingText(at: Date())) left.", false)
- }
- }
-
default:
return ("unknown tool \(tool)", false)
}
diff --git a/NotchBuddy/Sources/CoucouKit/BotEngine.swift b/NotchBuddy/Sources/CoucouKit/BotEngine.swift
index 9dc58fe7..59b6020d 100644
--- a/NotchBuddy/Sources/CoucouKit/BotEngine.swift
+++ b/NotchBuddy/Sources/CoucouKit/BotEngine.swift
@@ -294,9 +294,6 @@ final class BotEngine: ObservableObject {
var nextNervousBlink: Double = 0
var moodLiftApplied: CGFloat = 0
var nextMoodYawn: Double = 0
- // Focus headphones: 1 while a Focus session runs.
- var headphonesTarget: CGFloat = 0
- var headphones: CGFloat = 0
// Mini wandering look (random, ignores mouse)
var miniLookTarget: CGPoint = .zero
@@ -1315,7 +1312,7 @@ final class BotEngine: ObservableObject {
drawBadge(context: context, size: size, badge: badge, R: R, rx: rx, ry: ry, cx: cx, cy: cy)
}
- // Heat waves and the Focus headphones (MochiMood.swift)
+ // Sweat and heat waves (MochiMood.swift)
drawMoodExtras(context: context, R: R, rx: rx, ry: ry, cx: cx, cy: cy)
// Particles
diff --git a/NotchBuddy/Sources/CoucouKit/MochiMood.swift b/NotchBuddy/Sources/CoucouKit/MochiMood.swift
index fae947be..79759f30 100644
--- a/NotchBuddy/Sources/CoucouKit/MochiMood.swift
+++ b/NotchBuddy/Sources/CoucouKit/MochiMood.swift
@@ -45,7 +45,7 @@ struct MoodHop {
var landed = true
}
-// MARK: - Mochi's moods and the Focus headphones
+// MARK: - Mochi's moods
extension BotEngine {
/// States where the Mac's mood shows: Mochi is not asking for anything.
@@ -78,7 +78,6 @@ extension BotEngine {
moodFull += ((shows ? target.full : 0) - moodFull) * k
moodTired += ((calmState ? target.tired : 0) - moodTired) * k
let sleeping = calmState && target.asleep
- headphones += (headphonesTarget - headphones) * CGFloat(1 - pow(0.02, dt))
updateStress(now: now)
@@ -94,7 +93,7 @@ extension BotEngine {
if moodBusy > 0.4 {
throwDrop(now: now)
if Double.random(in: 0...1) < 0.35 { throwDrop(now: now) }
- nextMoodDrop = now + Double.random(in: 0.14...0.32)
+ nextMoodDrop = now + Double.random(in: 0.18...0.4)
} else if moodHot > 0.6 {
throwDrop(now: now)
nextMoodDrop = now + Double.random(in: 0.6...1.1)
@@ -146,12 +145,12 @@ extension BotEngine {
// Next hop: somewhere else on the floor, never twice the same.
var next: CGFloat = 0
if level > 0.3 {
- repeat { next = CGFloat.random(in: -0.34...0.34) } while abs(next - hop.to) < 0.14
+ repeat { next = CGFloat.random(in: -0.28...0.28) } while abs(next - hop.to) < 0.12
}
hop = MoodHop(from: hop.to, to: next, start: now,
- duration: Double.random(in: 0.15...0.3),
- height: level > 0.3 ? CGFloat.random(in: 0.08...0.22) : 0.05,
- rest: Double.random(in: 0.02...0.38), landed: false)
+ duration: Double.random(in: 0.22...0.4),
+ height: level > 0.3 ? CGFloat.random(in: 0.07...0.18) : 0.05,
+ rest: Double.random(in: 0.1...0.55), landed: false)
}
}
let q = CGFloat(min(1, hop.duration > 0 ? (now - hop.start) / hop.duration : 1))
@@ -179,13 +178,13 @@ extension BotEngine {
let back = Double.random(in: 0...1) < 0.3
stressLook = CGPoint(x: back ? -stressLook.x * 0.8 : CGFloat.random(in: -0.85...0.85),
y: CGFloat.random(in: -0.3...0.18))
- nextStressLook = now + Double.random(in: 0.09...0.3)
+ nextStressLook = now + Double.random(in: 0.16...0.45)
}
tgYaw = stressLook.x
tgPitch = stressLook.y
// Snap towards the new spot faster than a calm look.
- if !locks.contains("yaw") { yaw += (tgYaw - yaw) * 0.35 * amount }
- if !locks.contains("pitch") { pitch += (tgPitch - pitch) * 0.35 * amount }
+ if !locks.contains("yaw") { yaw += (tgYaw - yaw) * 0.2 * amount }
+ if !locks.contains("pitch") { pitch += (tgPitch - pitch) * 0.2 * amount }
if now > nextNervousBlink {
if nextNervousBlink > 0, !locks.contains("open") {
if Double.random(in: 0...1) < 0.3 {
@@ -194,7 +193,7 @@ extension BotEngine {
blink()
}
}
- nextNervousBlink = now + Double.random(in: 0.7...1.8)
+ nextNervousBlink = now + Double.random(in: 1.0...2.4)
}
}
let tremble = min(1, level * 1.3)
@@ -243,7 +242,7 @@ extension BotEngine {
))
}
- /// What goes over Mochi in world space: sweat drops, heat waves, and the Focus headphones.
+ /// What goes over Mochi in world space: sweat drops and heat waves.
func drawMoodExtras(context: GraphicsContext, R: CGFloat, rx: CGFloat, ry: CGFloat, cx: CGFloat, cy: CGFloat) {
guard !isMini, morph < 0.3 else { return }
let real = CACurrentMediaTime()
@@ -301,41 +300,5 @@ extension BotEngine {
style: StrokeStyle(lineWidth: max(1, R * 0.07), lineCap: .round))
}
}
-
- // Focus headphones: a padded band hugging the head, a cup on each side.
- guard headphones > 0.01 else { return }
- var c = context
- c.opacity = Double(min(1, headphones * 1.4))
- c.translateBy(x: cx, y: cy - (1 - headphones) * R * 0.8)
- if tilt != 0 { c.rotate(by: .radians(tilt)) }
- c.scaleBy(x: sx, y: sy)
- let shift = sin(yaw) * rx * 0.1
- let dark = Color(red: 0.133, green: 0.145, blue: 0.172) // #22252C
- var band = Path()
- band.move(to: CGPoint(x: -rx * 0.97 + shift, y: -ry * 0.18))
- band.addCurve(to: CGPoint(x: rx * 0.97 + shift, y: -ry * 0.18),
- control1: CGPoint(x: -rx * 0.98 + shift, y: -ry * 1.52),
- control2: CGPoint(x: rx * 0.98 + shift, y: -ry * 1.52))
- c.stroke(band, with: .color(dark), style: StrokeStyle(lineWidth: R * 0.15, lineCap: .round))
- c.stroke(band, with: .color(Color(red: 0.227, green: 0.243, blue: 0.282)),
- style: StrokeStyle(lineWidth: R * 0.06, lineCap: .round))
- for side in [-1.0, 1.0] as [CGFloat] {
- let w = R * 0.44, h = R * 0.74
- let ccx = side * rx * 0.97 + shift, ccy = ry * 0.04
- var yoke = Path()
- yoke.move(to: CGPoint(x: side * rx * 0.97 + shift, y: -ry * 0.2))
- yoke.addLine(to: CGPoint(x: ccx, y: ccy - h * 0.3))
- c.stroke(yoke, with: .color(dark), style: StrokeStyle(lineWidth: R * 0.1, lineCap: .round))
- let shell = CGRect(x: ccx - w / 2, y: ccy - h / 2, width: w, height: h)
- c.fill(Path(roundedRect: shell, cornerRadius: w / 2), with: .linearGradient(
- Gradient(colors: [Color(red: 0.227, green: 0.243, blue: 0.278), Color(red: 0.11, green: 0.118, blue: 0.137)]),
- startPoint: CGPoint(x: ccx, y: shell.minY), endPoint: CGPoint(x: ccx, y: shell.maxY)))
- let face = CGRect(x: ccx - w * 0.3, y: ccy - h * 0.33, width: w * 0.6, height: h * 0.66)
- c.fill(Path(roundedRect: face, cornerRadius: w * 0.3), with: .linearGradient(
- Gradient(colors: [Color(red: 0.769, green: 0.71, blue: 0.992), Color(red: 0.545, green: 0.361, blue: 0.965)]),
- startPoint: CGPoint(x: ccx, y: face.minY), endPoint: CGPoint(x: ccx, y: face.maxY)))
- c.fill(Path(roundedRect: CGRect(x: ccx - w * 0.2, y: ccy - h * 0.27, width: w * 0.14, height: h * 0.24),
- cornerRadius: w * 0.07), with: .color(.white.opacity(0.35)))
- }
}
}
diff --git a/docs/SPEC.md b/docs/SPEC.md
index d65c424f..bdbd7978 100644
--- a/docs/SPEC.md
+++ b/docs/SPEC.md
@@ -382,7 +382,6 @@ Ces raccourcis fonctionnent en arrière-plan sans permission Accessibilité.
| Couper le son (`toggleMute`) | ⌃⌥M | `shortcut.toggleMute.keyCode` / `.flags` | Oui |
| Mochi sur le bureau (`toggleDesktopMochi`) | ⌃⌥D | `shortcut.toggleDesktopMochi.keyCode` / `.flags` | Oui |
| Ouvrir la garde-robe (`openWardrobe`) | ⌃⌥G | `shortcut.openWardrobe.keyCode` / `.flags` | Oui |
-| Session Focus (`focusToggle`) | ⌃⌥F | `shortcut.focusToggle.keyCode` / `.flags` | Oui |
| Capture d'écran pour Claude (`captureScreen`) | ⌃⌥X | `shortcut.captureScreen.keyCode` / `.flags` | Oui (hors App Store) |
- Si Carbon ne peut pas enregistrer un raccourci (conflit système), l'action est marquée `.conflict` dans `HotKeyCenter` et un indicateur apparaît dans Réglages → Raccourcis.
@@ -434,15 +433,7 @@ Réglages → Raccourcis (`ShortcutsSettingsView`) :
- Pointeur sur Mochi (ou sur l'île compacte) : une ligne sous l'île dit pourquoi, par ex. « CPU 94 % · node, Google Chrome » (les deux apps qui prennent le plus de processeur, lues seulement quand il transpire).
- Dessin : `MochiMood.swift` (CoucouKit), l'iPhone ne règle jamais l'humeur.
-## 16. Focus
-
-- Démarrer : le minuteur de l'en-tête de l'île, ⌃⌥F, Réglages → Focus, ou « OK Coucou, focus 25 minutes » (outil `focus` de Claude).
-- Pendant la session : Mochi met un casque, l'île compacte affiche le temps restant à la place des pastilles et ne se cache plus, `SoundEngine` ne joue que `approval`, `question` et `approve`, et l'île ne s'ouvre plus d'elle-même (`HookServer.expandIfNeeded`, `.hookReveal`, `.musicReveal`). Une demande de permission ou une question passe toujours : un agent ne doit jamais attendre un minuteur.
-- Fin : son `finish`, émote proud, puis une pause (5 min par défaut, 0 = pas de pause). L'en-tête montre « Arrêter ? » au premier clic, le second arrête.
-- Concentration de macOS : une app ne peut pas l'activer. Deux raccourcis de l'app Raccourcis, nommés dans Réglages → Focus, sont lancés au début et à la fin (`/usr/bin/shortcuts run`, build GitHub).
-- Temps par projet (`ProjectTime`) : sans minuteur, à chaque changement d'app au premier plan, verrouillage et veille. Éditeurs (VS Code, Cursor, Windsurf, Zed, Xcode, JetBrains, Sublime) : projet tiré du titre de la fenêtre (Accessibilité). Terminal : dossier de la session d'agent qui y tourne. Plus de 5 min sans clavier ni souris ne comptent pas. `Application Support/NotchBuddy/projecttime.json`, 90 jours.
-
-## 17. Capture d'écran pour Claude (build GitHub)
+## 16. Capture d'écran pour Claude (build GitHub)
- ⌃⌥X : l'île se replie, puis la sélection de macOS (`screencapture -i -x -o`) : zone, Espace pour une fenêtre, Échap pour annuler. Première fois : permission Enregistrement de l'écran.
- L'image arrive dans l'île (vue `.capture`) : son `gulp`, Mochi avale. Boutons : **Coller** (dans l'app où on était : ⌘V, ou ⌃V dans un terminal pour Claude Code ; le presse-papiers reprend son contenu après 1,5 s), **Copier**, **Annoter** (fenêtre : flèche, cadre, crayon, 4 couleurs, ⌘Z, l'image annotée revient dans l'île), **Demander à Claude** (chat de l'île, image jointe).