From c868880d6702c63d3712a07dded38308426e3cfa Mon Sep 17 00:00:00 2001 From: Yaroslav de la Peña Smirnov Date: Wed, 4 Nov 2026 02:41:11 +0300 Subject: calcurse: improve sync notifications Make them transient and add pretty icons --- dotfiles/.config/calcurse/hooks/post-save | 8 ++++---- dotfiles/.config/calcurse/hooks/pre-load | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'dotfiles/.config') diff --git a/dotfiles/.config/calcurse/hooks/post-save b/dotfiles/.config/calcurse/hooks/post-save index d797649..c6cd7b8 100755 --- a/dotfiles/.config/calcurse/hooks/post-save +++ b/dotfiles/.config/calcurse/hooks/post-save @@ -17,16 +17,16 @@ cd "$data_dir" || exit if [ -d caldav ] && command -v calcurse-caldav >/dev/null; then ( date="$(date +'%b %d %H:%M:%S')" - notify-send "📅 Calcurse" "Saving and syncing with caldav server..." + notify-send -a "Calcurse" -i plan -e "Saving and syncing with caldav server..." echo "$date Running calcurse-caldav from the post-save hook..." timeout 60 calcurse-caldav rc=$? if [ $rc -eq 124 ]; then - notify-send "📅 Calcurse" "❌ Syncing timed out" + notify-send -a "Calcurse" -i dialog-error -e "Syncing timed out" elif [ $rc -gt 0 ]; then - notify-send "📅 Calcurse" "❌ Syncing failed (see logs)" + notify-send -a "Calcurse" -i dialog-error -e "Syncing failed (see logs)" else - notify-send "📅 Calcurse" "Calendar saved and synced" + notify-send -a "Calcurse" -i plan -e "Calendar saved and synced" fi echo rm caldav/lock diff --git a/dotfiles/.config/calcurse/hooks/pre-load b/dotfiles/.config/calcurse/hooks/pre-load index 20787fe..e278962 100755 --- a/dotfiles/.config/calcurse/hooks/pre-load +++ b/dotfiles/.config/calcurse/hooks/pre-load @@ -11,16 +11,16 @@ cd "$data_dir" || exit if [ -d caldav ] && command -v calcurse-caldav >/dev/null; then ( date="$(date +'%b %d %H:%M:%S')" - notify-send "📅 Calcurse" "Loading and syncing with caldav server..." + notify-send -a "Calcurse" -i plan -e "Loading and syncing with caldav server..." echo "$date Running calcurse-caldav from the pre-load hook..." timeout 60 calcurse-caldav rc=$? if [ $rc -eq 124 ]; then - notify-send "📅 Calcurse" "❌ Syncing timed out" + notify-send -a "Calcurse" -i dialog-error -e "Syncing timed out" elif [ $rc -gt 0 ]; then - notify-send "📅 Calcurse" "❌ Syncing failed (see logs)" + notify-send -a "Calcurse" -i dialog-error -e "Syncing failed (see logs)" else - notify-send "📅 Calcurse" "Calendar synced" + notify-send -a "Calcurse" -i plan -e "Calendar synced" fi echo rm caldav/lock -- cgit v1.3.1