aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/cron
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/cron')
-rwxr-xr-x.local/bin/cron/newsup10
1 files changed, 5 insertions, 5 deletions
diff --git a/.local/bin/cron/newsup b/.local/bin/cron/newsup
index 25dae98..a7cc907 100755
--- a/.local/bin/cron/newsup
+++ b/.local/bin/cron/newsup
@@ -1,18 +1,18 @@
#!/bin/sh
-# Set as a cron job to check for new RSS entries for newsboat.
-# If newsboat is open, sends it an "R" key to refresh.
+# Set as a cron job to check for new RSS entries for newsraft.
+# If newsraft is open, sends it an "R" key to refresh.
-export XDG_RUNTIME_DIR=/run/user/1000
+export XDG_RUNTIME_DIR=/tmp/hyprland
export WAYLAND_DISPLAY=wayland-1
/usr/bin/notify-send "󰎕 Updating RSS feeds..."
-pgrep -f newsboat$ && /usr/bin/wlrctl window focus title:newsboat && /usr/bin/wlrctl keyboard type R && exit
+pgrep -f newsraft$ && hyprctl --instance 0 dispatch sendshortcut ,R ,title:newsraft && exit
echo "" > /tmp/newsupdate
pkill -RTMIN+6 "${STATUSBAR:-waybar}"
-/usr/bin/newsboat -x reload
+/usr/bin/newsraft -e reload-all
rm -f /tmp/newsupdate
pkill -RTMIN+6 "${STATUSBAR:-waybar}"
/usr/bin/notify-send "󰎕 RSS feed update complete."