Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/chebro/calendar-notification

calendar notification for linux desktops using dunst
https://github.com/chebro/calendar-notification

dunst hacktoberfest i3blocks linux-desktop polybar

Last synced: about 1 month ago
JSON representation

calendar notification for linux desktops using dunst

Awesome Lists containing this project

README

        

# Calendar Notification

demo

> _currently supports i3blocks and polybar_

Calendar notifications for desktops running the dunst notification daemon.

## Dependencies

- [dunst notification daemon](https://github.com/dunst-project/dunst)
- [i3blocks](https://github.com/vivien/i3blocks) or [polybar](https://github.com/polybar/polybar)
- [cal]()

## Actions

The `calendar` script is responsible for handling mouse events triggered by your bar, following are valid arguments:

```sh
./calendar curr # current month
./calendar next # increment month
./calendar prev # decrement month
```

## i3blocks

Create a date block:

```ini
[date]
command = ~/.config/i3blocks/scripts/date.sh
interval = 60
```

Copy the contents of `i3blocks` to `$HOME/.config/i3blocks` (to tweak the mouse actions see `i3blocks/scripts/date.sh`):

```bash
cp -rL i3blocks ~/.config # -L to dereference the symlink
```

## polybar

Copy `calendar` to your polybar config directory. Then, in your polybar config, you can use `click-left`, `scroll-up` and `scroll-down` actions to invoke the script. For example:

```ini
; add `calendar` to your modules list
[module/calendar]
type = custom/script
label = "󰃭"
exec = echo Calendar
click-left = ./calendar curr
scroll-up = ./calendar next
scroll-down = ./calendar prev
```