From 149d43f2bd5976e0bc886a8265a81ddf872575ad Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Sat, 17 May 2025 22:03:13 +0100 Subject: Fix yambar newsboat tag & calendar/audio actions --- dot-config/yambar/scripts/newsboat | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dot-config/yambar/scripts/newsboat') diff --git a/dot-config/yambar/scripts/newsboat b/dot-config/yambar/scripts/newsboat index fa50b80..0dd97ec 100755 --- a/dot-config/yambar/scripts/newsboat +++ b/dot-config/yambar/scripts/newsboat @@ -1,8 +1,10 @@ #!/bin/sh # Get unread count -pgrep -x newsboat || newsboat -x print-unread >~/.cache/unread +pgrep -x newsboat >/dev/null \ + || newsboat -x print-unread >~/.cache/unread + unread=$(cut -f1 -d' ' ~/.cache/unread) -# Display unread count -printf "unread|int|%s\n\n" "$unread" +# # Display unread count + printf "%s\n\n" "unread|int|$unread" -- cgit