Google Calendar
+ +Description
+ +Displays your upcoming Google calendar events.
+ +Source Code
+wtf/gcal/
Required ENV Variables
+ +Key: WTF_GOOGLE_CAL_CLIENT_ID
+Value: Your Google API client ID.
Key: WTF_GOOGLE_CAL_CLIENT_SECRET
+Value: Your Google API client secret.
Keyboard Commands
+ +None.
+ +Configuration
+gcal:
+ colors:
+ title: "red"
+ description: "lightblue"
+ highlights:
+ - ['1on1|1\/11', 'green']
+ - ['apple|google|aws', 'blue']
+ - ['interview|meet', 'magenta']
+ - ['lunch', 'yellow']
+ past: "gray"
+ conflictIcon: "🚨"
+ currentIcon: "💥"
+ enabled: true
+ eventCount: 12
+ position:
+ top: 0
+ left: 0
+ height: 4
+ width: 1
+ refreshInterval: 300
+ secretFile: "~/.wtf/gcal/client_secret.json"
Attributes
+ +colors.title
+Specifies the default colour for calendar event titles.
+Values: Any X11
+color name.
colors.description
+Specifies the default color for calendar event descriptions.
+Values: Any X11
+color name.
colors.highlights
+A list of arrays that define a regular expression pattern and a color.
+If a calendar event title matches a regular expression, the title will
+be drawn in that colour. Over-rides the default title colour.
+Values: [a valid regular expression, any X11 color name.]
colors.past
+Specifies the color for calendar events that have passed.
+Values: Any X11
+color name.
conflictIcon
+The icon displayed beside calendar events that have conflicting times
+(they intersect or overlap in some way).
+Values: Any displayable unicode character.
currentIcon
+The icon displayed beside the current calendar event.
+Values: Any displayable unicode character.
enabled
+Determines whether or not this module is executed and if its data displayed onscreen.
+Values: true
, false
.
eventCount
+The number of calendar events to display.
+Values: A positive integer, 0..n
.
position
+Defines where in the grid this module’s widget will be displayed.
refreshInterval
+How often, in seconds, this module will update its data.
+Values: A positive integer, 0..n
.
secretFile
+Your Google client secret JSON file.
+Values: A string representing a file path to the JSON secret file.