summaryrefslogtreecommitdiff
path: root/newsup
blob: 3201e9b0b9850297726da841255cb89174a5bda3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Update newsboat and send a notification

export DISPLAY=:0.0
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus

/usr/bin/notify-send "Updating RSS feeds..."

pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name "^newsboat$")" R && exit

/usr/bin/newsboat -x reload
/usr/bin/notify-send "RSS feed update complete."