This is just me screwing around with Conky, there is still some work that needs done with this but here we go. All of this was done for my system that happens to be running PopOS.
Dependencies
Install Conky
sudo apt install gcalcli conky-all
Install gcalcli
apt-get install gcalcli
(this taken from the author's git)
OAuth2 is used for authenticating with your Google account. The resulting token is placed in the ~/.gcalcli_oauth file. When you first start gcalcli the authentication process will proceed. Simply follow the instructions.
- Create a New Project within the Google developer console
- Activate the "Create" button.
- Activate the "Enable" button.
- Create OAuth2 consent screen for an "UI /Desktop Application".
- Fill out required App information section
- Specify App name. Example: "gcalcli"
- Specify User support email. Example: [email protected]
- Fill out required Developer contact information
- Specify Email addresses. Example: [email protected]
- Activate the "Save and continue" button.
- Scopes: activate the "Save and continue" button.
- Test users
- Add [email protected]
- Activate the "Save and continue" button.
- Specify Application type: Desktop app.
- Activate the "Create" button.
- Grab your newly created Client ID (in the form "xxxxxxxxxxxxxxx.apps.googleusercontent.com") and Client Secret from the Credentials page.
- Call
gcalcli
with your Client ID and Client Secret to login via the OAuth2 Authorization Screen.gcalcli --client-id=xxxxxxxxxxxxxxx.apps.googleusercontent.com --client-secret=xxxxxxxxxxxxxxxxx list
. In most shells, putting a space before the command will keep it, and therefore your secrets, out of history. Check withhistory | tail
. - This should automatically open the OAuth2 authorization screen in your default browser.
Credit to the resource I used to do a lot of this