summaryrefslogtreecommitdiff
path: root/.local/bin/cron
diff options
context:
space:
mode:
authormarlonivo <email@marlonivo.xyz>2025-04-14 10:21:23 +0000
committermarlonivo <email@marlonivo.xyz>2025-04-14 10:21:23 +0000
commit4e3440c77a5e3a9f09d1719e2e8782500e3a5415 (patch)
tree25c2b34cc9a73043adb888d33745f473e5ed41d5 /.local/bin/cron
parent0d1a84f59d8cdd62c97410f96f8a13c98c51453a (diff)
removalHEADmaster
Diffstat (limited to '.local/bin/cron')
-rw-r--r--.local/bin/cron/README.md11
-rw-r--r--.local/bin/cron/checkup17
-rw-r--r--.local/bin/cron/crontog6
-rw-r--r--.local/bin/cron/newsup15
4 files changed, 0 insertions, 49 deletions
diff --git a/.local/bin/cron/README.md b/.local/bin/cron/README.md
deleted file mode 100644
index fa0c354..0000000
--- a/.local/bin/cron/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Important Note
-
-These cronjobs have components that require information about your current display to display notifications correctly.
-
-When you add them as cronjobs, I recommend you precede the command with commands as those below:
-
-```
-export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; then_command_goes_here
-```
-
-This ensures that notifications will display, xdotool commands will function and environmental variables will work as well.
diff --git a/.local/bin/cron/checkup b/.local/bin/cron/checkup
deleted file mode 100644
index bd3c634..0000000
--- a/.local/bin/cron/checkup
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-# Syncs repositories and downloads updates, meant to be run as a cronjob.
-
-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+8 "${STATUSBAR:-dwmblocks}"
-
-if pacman -Qu | grep -v "\[ignored\]"
-then
- notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (📦) for update."
-else
- notify-send "📦 Repository Sync" "Sync complete. No new packages for update."
-fi
diff --git a/.local/bin/cron/crontog b/.local/bin/cron/crontog
deleted file mode 100644
index c9a640f..0000000
--- a/.local/bin/cron/crontog
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-# Toggles all cronjobs off/on.
-# Stores disabled crontabs in ~/.config/cronsaved until restored.
-
-([ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved ] && crontab - < "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved && rm "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved && notify-send "🕓 Cronjobs re-enabled.") || ( crontab -l > "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved && crontab -r && notify-send "🕓 Cronjobs saved and disabled.")
diff --git a/.local/bin/cron/newsup b/.local/bin/cron/newsup
deleted file mode 100644
index ed266d7..0000000
--- a/.local/bin/cron/newsup
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/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.
-
-/usr/bin/notify-send "📰 Updating RSS feeds..."
-
-pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name "^newsboat$")" R && exit
-
-echo 🔃 > /tmp/newsupdate
-pkill -RTMIN+6 "${STATUSBAR:-dwmblocks}"
-/usr/bin/newsboat -x reload
-rm -f /tmp/newsupdate
-pkill -RTMIN+6 "${STATUSBAR:-dwmblocks}"
-/usr/bin/notify-send "📰 RSS feed update complete."