diff options
author | awy <awy@awy.one> | 2025-08-24 15:38:06 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-08-24 15:38:06 +0300 |
commit | a1e9b2c3094d4371d03a24bc2c5361d65f8abf14 (patch) | |
tree | 3a27a458727792d15cdef6936ffdd5f0e114cd59 /.local/bin/cron/newsup | |
parent | 474006cd2c173d02e4511045f07c04e159010d4e (diff) | |
download | hyprdots-a1e9b2c3094d4371d03a24bc2c5361d65f8abf14.tar.gz |
newsraft
Diffstat (limited to '.local/bin/cron/newsup')
-rwxr-xr-x | .local/bin/cron/newsup | 10 |
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." |