Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/primamateria/i3blocks-gcalcli

Block for i3blocks which shows upcoming event in the status bar and full month when clicked on.
https://github.com/primamateria/i3blocks-gcalcli

Last synced: 17 days ago
JSON representation

Block for i3blocks which shows upcoming event in the status bar and full month when clicked on.

Awesome Lists containing this project

README

        

# i3blocks gcalcli

Block for [i3blocks](https://github.com/vivien/i3blocks) which shows upcoming event in the status bar and full month when clicked on.

![screenshot](screenshot.png)

## Dependencies
- python
- [gcalcli](https://github.com/insanum/gcalcli)
- [xterm](https://invisible-island.net/xterm/) - for showing calendar in popup window

## Installation
Install and setup gcalcli.
Download the `i3blocks-gcalcli.py`

Setup popup window style and position in i3 config:
```
# i3blocks-gcalcli
for_window [class="XTerm" title="i3blocks-gcalcli"] floating enable
for_window [class="XTerm" title="i3blocks-gcalcli"] move absolute position 1665 25
for_window [class="XTerm" title="i3blocks-gcalcli"] border none
```

List blocklet configuration in i3blocks config:
```
[gcalcli]
command=/i3blocks-gcalcli.py -e "Holidays in Germany" -m "weather,Holidays in Germany,Sviatky na Slovensku"
interval=1800
```

## Usage

```
$ ./i3blocks-gcalcli.py -h
Usage:
i3blocks-gcalcli.py [options]

Options:
-e, --eventCalendars Event calendars are considered when getting next upcoming event. Probably weather calendar should be skipped. Multiple values comma separated.
-m, --monthCalendars Month calendars are considered when showing full month after click. Multiple values comma separated.
-f, --fontFamily Font family/face used for xterm window showing month calendar.
-w, --width Cell width of month calendar. Minimum 10. Default 20.
-s, --status Status format. Possible values: datetimetitle, datetitle, title. Default datetimetitle.
```