aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2026-11-04 02:41:11 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2026-11-04 02:41:11 +0300
commitc868880d6702c63d3712a07dded38308426e3cfa (patch)
tree2576391c8b3e7e991993a32a13076020ec106439 /dotfiles
parent23d610cf95466c8baa0c4b1fd48f401f1b2cd260 (diff)
downloadswayrice-c868880d6702c63d3712a07dded38308426e3cfa.tar.gz
swayrice-c868880d6702c63d3712a07dded38308426e3cfa.zip
calcurse: improve sync notifications
Make them transient and add pretty icons
Diffstat (limited to 'dotfiles')
-rwxr-xr-xdotfiles/.config/calcurse/hooks/post-save8
-rwxr-xr-xdotfiles/.config/calcurse/hooks/pre-load8
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