Last active
January 8, 2018 11:18
-
-
Save megasaturnv/54d742bf004dd22478c130bf6b699885 to your computer and use it in GitHub Desktop.
One-liner to check newsbeuter for updates every 30 seconds. If an unread item apears, it will alert the user with an audible bell and open newsbeuter. https://github.com/akrennmair/newsbeuter http://www.newsbeuter.org/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Megasaturnv 2017-06-08 | |
while true; do sleep 30; newsbeuter -x reload -x print-unread | grep -q "^0 unread articles" && echo -n . || (echo -e "\a"; newsbeuter) ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment