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 +++++--- dot-config/yambar/scripts/newsboat-open | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100755 dot-config/yambar/scripts/newsboat-open (limited to 'dot-config/yambar/scripts') 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" diff --git a/dot-config/yambar/scripts/newsboat-open b/dot-config/yambar/scripts/newsboat-open new file mode 100755 index 0000000..b2ebf56 --- /dev/null +++ b/dot-config/yambar/scripts/newsboat-open @@ -0,0 +1,4 @@ +#!/bin/sh + +footclient -T 'newsboat' newsboat +newsboat -x print-unread > ~/.cache/unread -- cgit