aboutsummaryrefslogtreecommitdiff
path: root/scripts/stat/news
diff options
context:
space:
mode:
authorben <ben@nagy.contact>2025-01-10 11:14:29 -0800
committerben <ben@nagy.contact>2025-01-10 11:14:29 -0800
commitfb4f206e21cc2853e904e8e548b3d4450b208c8d (patch)
tree92044e436174b598bbb831473412ee4382a05396 /scripts/stat/news
parent7339a5dae5f48ba37d44094f8aaa9915695f86e5 (diff)
added scriptsmain
Diffstat (limited to 'scripts/stat/news')
-rwxr-xr-xscripts/stat/news3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/stat/news b/scripts/stat/news
new file mode 100755
index 0000000..f96bbea
--- /dev/null
+++ b/scripts/stat/news
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ps -e | grep "newsboat" >/dev/null && echo "X" || newsboat -x print-unread | grep -Eo '[0-9]{1,10}'