1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00
dotfiles/newsboat/.local/bin/newsup

14 lines
376 B
Plaintext
Raw Normal View History

2020-03-08 13:36:05 +00:00
#!/usr/bin/env sh
2020-03-12 01:42:49 +00:00
# Exit if newsboat is already running
pgrep -f newsboat > /dev/null && exit
2020-03-08 13:36:05 +00:00
# Needed for notify-send to work
2020-03-12 01:42:49 +00:00
export DISPLAY=":0.0"
2020-03-08 13:36:05 +00:00
notify-send.py --replaces-process update-feeds -a Newsboat -i rssowl "Rss" "Updating feeds" &
2020-03-12 01:42:49 +00:00
/usr/bin/newsboat -x reload
2020-03-08 13:36:05 +00:00
notify-send.py --replaces-process update-feeds -a Newsboat -i rssowl "Rss" "Feed update copmlete" &