summaryrefslogtreecommitdiff
path: root/ar/.local/bin/cron
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-03-24 11:34:32 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-03-24 11:34:32 +0900
commit01e4a66a09486307728d016576bee88df7b698c1 (patch)
treeb8237c0460b29a459bf9aa3afe8525b2677d5601 /ar/.local/bin/cron
parent7ad735138ce0160e68c3cb0e8be013e778400cf8 (diff)
updates
Diffstat (limited to 'ar/.local/bin/cron')
-rwxr-xr-xar/.local/bin/cron/checkup3
-rwxr-xr-xar/.local/bin/cron/newsup4
2 files changed, 4 insertions, 3 deletions
diff --git a/ar/.local/bin/cron/checkup b/ar/.local/bin/cron/checkup
index 2ea6772..86cba4a 100755
--- a/ar/.local/bin/cron/checkup
+++ b/ar/.local/bin/cron/checkup
@@ -1,13 +1,14 @@
#!/bin/sh
# Syncs repositories and downloads updates, meant to be run as a cronjob.
+# /usr/share/libalpm/hooks/statusbar.hook
notify-send "📦 Repository Sync" "Checking for package updates..."
sudo pacman -Syyuw --noconfirm || notify-send "⛔ Error downloading updates.
Check your internet connection, if pacman is already running, or run update manually to see errors."
-pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+11 "${STATUSBAR:-dwmblocks}"
if pacman -Qu | grep -v "\[ignored\]"; then
notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (📦) or run sb-popupgrade in terminal for update."
diff --git a/ar/.local/bin/cron/newsup b/ar/.local/bin/cron/newsup
index f8b40b7..c587e21 100755
--- a/ar/.local/bin/cron/newsup
+++ b/ar/.local/bin/cron/newsup
@@ -8,8 +8,8 @@
pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name "^newsboat$")" R && exit
echo 🔃 >/tmp/newsupdate
-pkill -RTMIN+17 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
-pkill -RTMIN+17 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
/usr/bin/notify-send "📰 RSS feed update complete."