2018-11-05 22:51:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Toggles all cronjobs off/on.
|
|
|
|
# Stores disabled crontabs in ~/.consaved until restored.
|
|
|
|
|
2019-03-24 01:58:46 +00:00
|
|
|
([ -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.")
|