From 0ff5fcd8cb3b0895b8b1fe4d2519df0cac3051d5 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 d223f9e..0000000 --- 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 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 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 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.") From a134d1d2db94a3999f2c9082d4cbf8299751eabd 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 52b6618..1cb74ee 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.")