recipe-block-focus-time

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Block Focus Time on Google Calendar

在Google Calendar上设置专注时段

PREREQUISITE: Load the following skills to execute this recipe:
gws-calendar
Create recurring focus time blocks on Google Calendar to protect deep work hours.
前提条件:加载以下技能以执行此方案:
gws-calendar
在Google Calendar上创建重复的专注时段,以保护深度工作时间。

Steps

步骤

  1. Create recurring focus block:
    gws calendar events insert --params '{"calendarId": "primary"}' --json '{"summary": "Focus Time", "description": "Protected deep work block", "start": {"dateTime": "2025-01-20T09:00:00", "timeZone": "America/New_York"}, "end": {"dateTime": "2025-01-20T11:00:00", "timeZone": "America/New_York"}, "recurrence": ["RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR"], "transparency": "opaque"}'
  2. Verify it shows as busy:
    gws calendar +agenda
  1. 创建重复专注时段:
    gws calendar events insert --params '{"calendarId": "primary"}' --json '{"summary": "Focus Time", "description": "Protected deep work block", "start": {"dateTime": "2025-01-20T09:00:00", "timeZone": "America/New_York"}, "end": {"dateTime": "2025-01-20T11:00:00", "timeZone": "America/New_York"}, "recurrence": ["RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR"], "transparency": "opaque"}'
  2. 验证显示为忙碌状态:
    gws calendar +agenda