summaryrefslogtreecommitdiff
path: root/dotfiles/system/.local/bin/cron
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/system/.local/bin/cron')
-rw-r--r--dotfiles/system/.local/bin/cron/README.md11
-rwxr-xr-xdotfiles/system/.local/bin/cron/checkup17
-rwxr-xr-xdotfiles/system/.local/bin/cron/crontog6
3 files changed, 0 insertions, 34 deletions
diff --git a/dotfiles/system/.local/bin/cron/README.md b/dotfiles/system/.local/bin/cron/README.md
deleted file mode 100644
index fa0c354..0000000
--- a/dotfiles/system/.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/dotfiles/system/.local/bin/cron/checkup b/dotfiles/system/.local/bin/cron/checkup
deleted file mode 100755
index bd3c634..0000000
--- a/dotfiles/system/.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/dotfiles/system/.local/bin/cron/crontog b/dotfiles/system/.local/bin/cron/crontog
deleted file mode 100755
index 5aba5e6..0000000
--- a/dotfiles/system/.local/bin/cron/crontog
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-# Toggles all cronjobs off/on.
-# Stores disabled crontabs in ~/.consaved 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.")