blob: 43180406a67c69f5786f8cbb09517a12248999cb (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
nb=$(cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print " " $1}')$(cat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null) ")
echo " $nb"
case $BLOCK_BUTTON in
1) "$TERMINAL" -e newsboat ;;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
|