diff options
| author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2026-11-04 02:41:11 +0300 |
|---|---|---|
| committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2026-11-04 02:41:11 +0300 |
| commit | c868880d6702c63d3712a07dded38308426e3cfa (patch) | |
| tree | 2576391c8b3e7e991993a32a13076020ec106439 /dotfiles | |
| parent | 23d610cf95466c8baa0c4b1fd48f401f1b2cd260 (diff) | |
| download | swayrice-c868880d6702c63d3712a07dded38308426e3cfa.tar.gz swayrice-c868880d6702c63d3712a07dded38308426e3cfa.zip | |
calcurse: improve sync notifications
Make them transient and add pretty icons
Diffstat (limited to 'dotfiles')
| -rwxr-xr-x | dotfiles/.config/calcurse/hooks/post-save | 8 | ||||
| -rwxr-xr-x | dotfiles/.config/calcurse/hooks/pre-load | 8 |
2 files changed, 8 insertions, 8 deletions
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 |
