From a87a6b1adb15dc7fcaab102846604ef5f2306133 Mon Sep 17 00:00:00 2001 From: yuriyurisuki <30354739+ExploXd@users.noreply.github.com> Date: Sat, 28 Jul 2018 08:56:27 +0200 Subject: [PATCH 1/3] Delete crontog --- .scripts/crontog | 5 ----- 1 file changed, 5 deletions(-) delete mode 100755 .scripts/crontog diff --git a/.scripts/crontog b/.scripts/crontog deleted file mode 100755 index d223f9e9..00000000 --- a/.scripts/crontog +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -# Toggles all cronjobs off/on. -# Stores disabled crontabs in ~/.cronsaved until restored. - -([[ -f ~/.cronsaved ]] && cat ~/.cronsaved | crontab - && rm ~/.cronsaved && echo cronjobs re-enabled.) || ( crontab -l > ~/.cronsaved && crontab -r && echo cronjobs saved and disabled. ) From 02a0c85cc44857f34b88812dfaf6c2332f716b97 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 2/3] 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 00000000..52b6618a --- /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.") From d4a5b8255c478cc265918ab52164d0b0591ac09a Mon Sep 17 00:00:00 2001 From: yuriyurisuki <30354739+ExploXd@users.noreply.github.com> Date: Sat, 28 Jul 2018 09:35:00 +0200 Subject: [PATCH 3/3] Update crontog --- .scripts/crontog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/crontog b/.scripts/crontog index 52b6618a..1cb74eeb 100644 --- a/.scripts/crontog +++ b/.scripts/crontog @@ -2,4 +2,4 @@ # 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.") +([[ -f ~/.cronsaved ]] && cat ~/.cronsaved | crontab - && rm ~/.cronsaved && notify-send "Cronjobs have been re-enabled." && echo cronjobs re-enabled.) || ( crontab -l > ~/.cronsaved && crontab -r && echo cronjobs saved and disabled.;notify-send "Cronjobs have been saved and disabled.")