summaryrefslogtreecommitdiff
path: root/newsup
blob: 42e90fd5ce01449d98e27f3df31dc6f65b0f9cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

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."