From a1e9b2c3094d4371d03a24bc2c5361d65f8abf14 Mon Sep 17 00:00:00 2001 From: awy Date: Sun, 24 Aug 2025 15:38:06 +0300 Subject: newsraft --- .local/bin/cron/newsup | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.local/bin/cron/newsup') 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." -- cgit v1.2.3