Google Calendar for Alfred
View Google Calendar events in Alfred. Supports multiple accounts.
Download & installation
Grab the workflow from GitHub releases. Download the Google-Calendar-View-X.X.alfredworkflow
file and double-click it to install.
Usage
When run, the workflow will open Google Calendar in your browser and ask for permission to access your calendars. If you do not grant permission, it won't work. The workflow requests permission to edit your calendars, as this is needed for the "Add New Event" feature (keyword gnew
). It does not otherwise alter your calendars or events in any way.
You will also be prompted to activate some calendars (the workflow will show events from these calendars). You can alter the active calendars or add/remove Google accounts in the settings using keyword gcalconf
.
gcal
β Show upcoming events.<query>
β Filter list of events.β©
β Open event in browser or day in workflow.ββ©
β Open event in Google Maps or Apple Maps (if event has a location).β§
/βY
β Quicklook event details.
today
/tomorrow
/yesterday
β Show events for the given day.<query>
/β©
/ββ©
/β§
/βY
β As above.
gdate [<date>]
β Show one or more dates. See below for query format.β©
β Show events for the given day.
gnew [<query>]
β Add a new event in the one of active calendars. (example: Some meeting at Office at 5pm with Ian)β©
β Create event in selected calendar.
gcalconf [<query>]
β Show workflow configuration.Active Calendarsβ¦
β Turn calendars on/off.β©
β Toggle calendar on/off.
Add Accountβ¦
β Add a Google account.β©
β Open Google login in browser to authorise an account.
[email protected]
β Your logged in Google account(s).β©
β Remove account.
Open Locations in Google Maps/Apple Maps
β Choose app to open event locations.β©
β Toggle setting between Google Maps & Apple Maps.
Workflow is up to Date
/An Update is Available
β Whether a newer version of the workflow is available.β©
β Check for or install update.
Open Locations in XYZ
β Open locations in Google Maps or Apple Maps.β©
β Toggle between applications.Open Documentation
β Open this page in your brower.Get Help
β Visit the thread for this workflow on AlfredForum.com.Report Issue
β Open an issue on GitHub.Clear Cached Calendars & Events
β Remove cached lists of calendars and events.
Date format
When viewing dates/events, you can specify and jump to a particular date using the following input format:
YYYY-MM-DD
β e.g.2017-12-01
YYYYMMDD
β e.g.20180101
[+|-]N[d|w]
β e.g.:1
,1d
or+1d
for tomorrow-1
or-1d
for yesterday3w
for 21 days from now-4w
for 4 weeks ago
Add event format
The "Add New Event" feature (keyword gnew
) creates an event using Google Calendar's natural language syntax. This doesn't appear to be properly documented anywhere, but it is pretty powerful. You can specify event title, location, time & duration and repetition. Some examples:
Wash pants
β creates an event titled "Wash pants" starting now using your default event durationClean pants party tomorrow
β creates an all-day event for tomorrow title "Clean pants party"Drink beer every day 2000-2200
β creates an event titled "Drink beer" starting at 8pm, finishing at 10pm, and repeating every day.
Configuration
There are a couple of options in the workflow's configuration sheet (the [x]
button in Alfred Preferences):
Setting | Description |
---|---|
CALENDAR_APP |
Name of application to open Google Calendar URLs (not map URLs) in. If blank, your default browser is used. |
EVENT_CACHE_MINS |
Number of minutes to cache event lists before updating from the server. |
SCHEDULE_DAYS |
The number of days' events to show with the gcal keyword. |
APPLE_MAPS |
Set to 1 to open map links in Apple Maps instead of Google Maps. This option can be toggled from within the workflow's configuration with keyword gcalconf . |
Licensing & thanks
This workflow is released under the MIT Licence.
It is heavily based on the Google API libraries for Go (BSD 3-clause licence) and AwGo libraries (MIT), and of course, Google Calendar.
The icons are from or based on Font Awesome and Weather Icons (both SIL).
Special thanks to @diffmike for adding the "Add New Event" feature.
Privacy
The data used and accessed by this workflow are stored exclusively on your own Mac. Nothing is shared with anyone. When you authorise this workflow to access your Google Calendars, the only person you are enabling to read that data is you.