dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

newsup (712B)


      1 #!/bin/sh
      2 
      3 # Set as a cron job to check for new RSS entries for newsboat.
      4 # If newsboat is open, sends it an "R" key to refresh.
      5 # Modified version of Luke's script.
      6 
      7 #ping -q -c 1 gormless.xyz > /dev/null || exit
      8 
      9 #notify-send "IMG:/usr/local/share/icons/ubo-icons-0.1alpha/128x128/apps/gnome-news.png\tUpdating RSS feeds..."
     10 
     11 echo "..." > /home/anon/etc/newsboat/newsupdate
     12 /usr/local/bin/newsboat -C /home/anon/etc/newsboat/config -u /home/anon/etc/newsboat/urls -x reload
     13 rm -f /home/anon/etc/newsupdate
     14 /usr/local/bin/newsboat -x print-unread | awk '{ print $1}' > /home/anon/etc/newsboat/newsupdate
     15 #notify-send "IMG:/usr/local/share/icons/ubo-icons-0.1alpha/128x128/apps/gnome-news.png\tUpdate complete."