Initial import of the calcurse Google Calendar sync from the dotfiles

Scripts, user units and hooks moved to system paths, the xmobar script as calcurse-xmobar with colour options, and expiry detection that also catches the first invalid_grant failure.
This commit is contained in:
Daniele Fucini committed 2026-11-21 15:32:34 +01:00
commit 8ed6a2b18a
17 files changed
+1077

No files matched your search

Executable
+9
View File
@@ -0,0 +1,9 @@
#!/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"