Files
dotfiles/.local/bin/calcurse-today
T
Daniele Fucini 84eec8c855 calcurse: notify whole-day events every morning
The calcurse daemon only alerts timed appointments, so birthdays went unnoticed. A daily 09:00 timer, started from xmonad and persistent across suspend, sends today's events through notify-send.
2026-11-12 11:27:30 +01:00

10 lines
342 B
Bash
Executable File

#!/bin/bash
# Notify today's whole-day calcurse events (the daemon only alerts timed appointments).
set -euo pipefail
events=$(calcurse -Q --filter-type event,recur-event --days 1 \
--format-event '%m\n' --format-recur-event '%m\n' | tail -n +2)
[[ -n $events ]] || exit 0
notify-send -a calcurse -i x-office-calendar "Today" "$events"