Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chebro/calendar-notification
- Owner: chebro
- License: mit
- Created: 2021-07-14T13:54:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T21:08:24.000Z (almost 3 years ago)
- Last Synced: 2024-09-29T15:04:56.469Z (about 1 month ago)
- Topics: dunst, hacktoberfest, i3blocks, linux-desktop, polybar
- Language: Shell
- Homepage:
- Size: 122 KB
- Stars: 78
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calendar Notification
> _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
```