waybar_newsraft.sh - dotfiles - These are my dotfiles. There are many like it, but these are mine.
 (HTM) git clone git://jay.scot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       waybar_newsraft.sh (225B)
       ---
            1 #!/bin/sh
            2 
            3 new="$(newsraft -e print-unread-items-count)"
            4 
            5 if [ $new -gt 0 ]
            6 then
            7         echo "{\"text\":\"$new\",\"tooltip\":\"$new articles\",\"class\":\"new\"}"
            8 else
            9         echo '{"text":"No new articles","tooltip":"","class":""}'
           10 fi
           11