aboutsummaryrefslogtreecommitdiff
path: root/dot-config/yambar/scripts
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
parent6b4b0306527e1dfe75b9ee03d37d426719e30bce (diff)
Fix yambar newsboat tag & calendar/audio actions
Diffstat (limited to 'dot-config/yambar/scripts')
-rwxr-xr-xdot-config/yambar/scripts/newsboat8
-rwxr-xr-xdot-config/yambar/scripts/newsboat-open4
2 files changed, 9 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"
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