diff options
| author | awy <awy@awy.one> | 2025-11-15 18:00:21 +0300 |
|---|---|---|
| committer | awy <awy@awy.one> | 2025-11-15 18:00:21 +0300 |
| commit | 07e33cdc43b27b675885761d02f171bd1f8d1eab (patch) | |
| tree | 9bb450a7197158710fae6e3a741528415c115082 | |
| parent | f6bdc7189414eb4bf83de295501f7b0d008d0823 (diff) | |
| download | mangoslice-07e33cdc43b27b675885761d02f171bd1f8d1eab.tar.gz | |
sb-news
| -rwxr-xr-x | .local/bin/statusbar/sb-news | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/statusbar/sb-news b/.local/bin/statusbar/sb-news index 440de7c..ae5b1b6 100755 --- a/.local/bin/statusbar/sb-news +++ b/.local/bin/statusbar/sb-news @@ -1,10 +1,10 @@ #!/bin/sh # Displays number of unread news items and an loading icon if updating. -# When clicked, brings up `newsboat`. +# When clicked, brings up `newsraft`. case $BLOCK_BUTTON in - 1) setsid "$TERMINAL" -T newsboat -e newsboat >/dev/null 2>&1 ;; + 1) setsid "$TERMINAL" -T newsraft -e newsraft >/dev/null 2>&1 ;; 2) setsid -f newsup >/dev/null && exit ;; 3) notify-send "📰 News module" "\- Shows unread news items - Shows 🔃 if updating with \`newsup\` @@ -14,4 +14,4 @@ case $BLOCK_BUTTON in 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;; esac - bat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print "📰" $1}')$(bat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null)" +bat /tmp/newsupdate 2>/dev/null || echo "$(newsraft -e print-unread-items-count | awk '{ if($1>0) print " " $1}')$(bat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsraft/.update 2>/dev/null)" |