aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
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