This is a Google Calendar Agenda script largely inspired by MeetingBar on macOS. I've personally only tested with Argos on Ubuntu, but it should work on any Linux distribution or macOS machine.
- Set up xBar or Argos and Python with Pip on your Mac or Linux machine
- Install the Google Python Client Library and Humanize with
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib humanize
- Create a Google Workspace API Project and enable the Google Calendar API. Download the
credentials.json
file and move it to your xBar/Argos plugin directory. - Copy
cal.30s.py
from this repository to your xBar/Argos plugin directory - Edit the Calendar ID(s) that you'd like to check, as well as the (optional) Emoji icon, on line 22-31
- If you'd like to colorize the events, set
useColors
totrue
on line 32 - If you'd like to filter out events with certain names, add them to the
eventNamesToFilter
list on line 33 - Mark the script as executible. It should pop open a web browser and ask for authentication, then begin listing events!
The MIT License (MIT)
Copyright © 2021 Leo Herzog
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.