summaryrefslogtreecommitdiff
path: root/.local/bin/crontog
blob: 93c2d30cc5a5c104d7ea0b37560c143caa4fa44d (plain)
1
2
3
4
5
#!/bin/sh
# Toggles all cronjobs off/on.
# Stores disabled crontabs in ~/.consaved until restored.

([ -f ~/.config/cronsaved ] && crontab - < ~/.config/cronsaved  && rm ~/.config/cronsaved && notify-send "🕓 Cronjobs re-enabled.") || ( crontab -l > ~/.config/cronsaved && crontab -r && notify-send "🕓 Cronjobs saved and disabled.")