Uses bash to create a calendar TUI which displays current date, any events and also allows for movement. Now allows for event creation and listing of all calendars via a separate script
- Create a new project in Google Cloud Console
- Create new credentials using the OAuth section (Make sure to register the app as a web application and not desktop app) and in Authorized Redirect URI's paste
https://developers.google.com/oauthplayground. - Download the credentials (
.json) - Open the downloaded
.jsonfile and go to Google OAuth Playground - Click on the gear icon at the top right and click on the "Use Own OAuth Credentials" and paste eyour client id and client secret in the fields.
- In the Input Your Own Scopes box at the bottom left paste
https://www.googleapis.com/auth/calendarand click Authorize API's and login with your account. - When redirected back, click Exchange authorization code for tokens.
- Copy the refresh token.
- Create a directory at
~/.config/gcal-tui/and create acredentials.jsonfile inside it. - Paste the following template into
~/.config/gcal-tui/credentials.json
{
"client_id": ,
"client_secret": ,
"refresh_token":
}- Fill out those fields with your details.
- Run
./gcal-tui.sh



