From b9702be50c05dc66abdc9ef7d2fbe8817679e1fd Mon Sep 17 00:00:00 2001 From: yuriyurisuki <30354739+ExploXd@users.noreply.github.com> Date: Sat, 28 Jul 2018 08:58:37 +0200 Subject: [PATCH] crontog fixed typos & notify-send notify-send is here because I want to bind this in my i3 config and having information about it. --- .scripts/crontog | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .scripts/crontog diff --git a/.scripts/crontog b/.scripts/crontog new file mode 100644 index 0000000..52b6618 --- /dev/null +++ b/.scripts/crontog @@ -0,0 +1,5 @@ +#!/bin/bash +# Toggles all cronjobs off/on. +# Stores disabled crontabs in ~/.consaved until restored. + +([[ -f ~/.cronsaved ]] && cat ~/.cronsaved | crontab - && rm ~/.cronsaved && notify-send "Cronjobs has been re-enabled." && echo cronjobs re-enabled.) || ( crontab -l > ~/.cronsaved && crontab -r && echo cronjobs saved and disabled.;notify-send "Cronjobs has been saved and disabled.")