AutoYADM commit: 2025-03-18 00:45:07

This commit is contained in:
Daniel Fichtinger 2025-03-18 00:45:07 -04:00
parent acf7566983
commit 9064ad140e
2 changed files with 161 additions and 6 deletions

View file

@ -5,9 +5,9 @@
PIPE="/tmp/email_refresh_pipe"
# COUNT="/tmp/email_count"
if [ -f /tmp/email_indicator_lock ]; then
exit 1
fi
# if [ -f /tmp/email_indicator_lock ]; then
# exit 1
# fi
# Create pipe if doesn't exist
[[ -p "$PIPE" ]] || mkfifo "$PIPE" && touch /tmp/email_indicator_lock
@ -26,7 +26,11 @@ get_unread_counts() {
# done
# we print a newline to let waybar know to display
# what we just printed
echo "p: $pcount s: $scount |"
if [ "$pcount" = 0 ] && [ "$scount" = 0 ] ; then
echo ""
else
echo "p: $pcount s: $scount |"
fi
}
# run once for initial output