dotfiles

beau's configuration files
git clone https://git.beauhilton.com/dotfiles.git
Log | Files | Refs | README

crontog (346B)


      1 #!/usr/bin/env sh
      2 # Toggles all cronjobs off/on.
      3 # Stores disabled crontabs in ~/.consaved until restored.
      4 
      5 ([ -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.")