i3rss.sh 212 B

123456789101112
  1. #!/bin/sh
  2. case $BLOCK_BUTTON in
  3. 1) st -n newsboat -e /bin/bash -ic newsboat -x reload ;;
  4. 2) ;;
  5. esac
  6. newsboat -x reload
  7. num_articles=$(newsboat -x print-unread | awk '{print $1}')
  8. echo "$num_articles"