newsup (325B)
1 #!/usr/bin/env sh 2 # Set as a cron job to check for new RSS entries for newsboat. 3 # If newsboat is open, sends it an "R" key to refresh. 4 5 ping -q -c 1 1.1.1.1 > /dev/null || exit 6 7 pgrep -x newsboat >/dev/null && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit 8 9 /usr/bin/newsboat -x reload