diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-24 11:34:32 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-24 11:34:32 +0900 |
| commit | 01e4a66a09486307728d016576bee88df7b698c1 (patch) | |
| tree | b8237c0460b29a459bf9aa3afe8525b2677d5601 /ar/.local/bin/cron | |
| parent | 7ad735138ce0160e68c3cb0e8be013e778400cf8 (diff) | |
updates
Diffstat (limited to 'ar/.local/bin/cron')
| -rwxr-xr-x | ar/.local/bin/cron/checkup | 3 | ||||
| -rwxr-xr-x | ar/.local/bin/cron/newsup | 4 |
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." |
