Update taskwarrior sync setup

This commit is contained in:
2024-09-13 14:17:00 +02:00
parent ed44636981
commit 0fe4662551
8 changed files with 48 additions and 67 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Redirect both stdout and stderr to notify-send as is, but set
# urgency to critical if the command fails
output="$(task rc.hooks=0 sync 2>&1)"
ret=$?
if [ $ret -ne 0 ]; then
urgency=critical
else
urgency=normal
fi
notify-send -u $urgency "Taskwarrior sync" "$output"