aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/cron
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/cron')
-rwxr-xr-x.local/bin/cron/checkup8
-rwxr-xr-x.local/bin/cron/newsup6
2 files changed, 7 insertions, 7 deletions
diff --git a/.local/bin/cron/checkup b/.local/bin/cron/checkup
index fbe8e0f..a571a35 100755
--- a/.local/bin/cron/checkup
+++ b/.local/bin/cron/checkup
@@ -2,16 +2,16 @@
# Syncs repositories and downloads updates, meant to be run as a cronjob.
-notify-send "📦 Repository Sync" "Checking for package updates..."
+notify-send " Repository Sync" "Checking for package updates..."
doas 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+8 "${STATUSBAR:-waybar}"
+pkill -RTMIN+8 "${STATUSBAR:-i3blocks}"
if pacman -Qu | rg -v "\[ignored\]"
then
- notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (📦) for update."
+ notify-send " Repository Sync" "Updates available. Click statusbar icon () for update."
else
- notify-send "📦 Repository Sync" "Sync complete. No new packages for update."
+ notify-send " Repository Sync" "Sync complete. No new packages for update."
fi
diff --git a/.local/bin/cron/newsup b/.local/bin/cron/newsup
index efdf4ae..25dae98 100755
--- a/.local/bin/cron/newsup
+++ b/.local/bin/cron/newsup
@@ -6,13 +6,13 @@
export XDG_RUNTIME_DIR=/run/user/1000
export WAYLAND_DISPLAY=wayland-1
-/usr/bin/notify-send "📰 Updating RSS feeds..."
+/usr/bin/notify-send "󰎕 Updating RSS feeds..."
pgrep -f newsboat$ && /usr/bin/wlrctl window focus title:newsboat && /usr/bin/wlrctl keyboard type R && exit
-echo 🔃 > /tmp/newsupdate
+echo "" > /tmp/newsupdate
pkill -RTMIN+6 "${STATUSBAR:-waybar}"
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
pkill -RTMIN+6 "${STATUSBAR:-waybar}"
-/usr/bin/notify-send "📰 RSS feed update complete."
+/usr/bin/notify-send "󰎕 RSS feed update complete."