aboutsummaryrefslogtreecommitdiff
path: root/dot-config/yambar/scripts/newsboat
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2025-05-17 22:03:13 +0100
committerBlake Romero <blake@blkrom.com>2025-05-17 22:07:50 +0100
commit149d43f2bd5976e0bc886a8265a81ddf872575ad (patch)
treeaeec577380924d0d1f9515cdc82474e7827e93b1 /dot-config/yambar/scripts/newsboat
parent6b4b0306527e1dfe75b9ee03d37d426719e30bce (diff)
Fix yambar newsboat tag & calendar/audio actions
Diffstat (limited to 'dot-config/yambar/scripts/newsboat')
-rwxr-xr-xdot-config/yambar/scripts/newsboat8
1 files changed, 5 insertions, 3 deletions
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"