diff options
| author | yuriyurisuki <30354739+ExploXd@users.noreply.github.com> | 2018-07-28 08:58:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-28 08:58:37 +0200 |
| commit | b9702be50c05dc66abdc9ef7d2fbe8817679e1fd (patch) | |
| tree | eca8f9805b775a1618977006632b0fbaab8e6e27 /.scripts | |
| parent | 0ff5fcd8cb3b0895b8b1fe4d2519df0cac3051d5 (diff) | |
| download | eibhear-b9702be50c05dc66abdc9ef7d2fbe8817679e1fd.tar.gz eibhear-b9702be50c05dc66abdc9ef7d2fbe8817679e1fd.tar.zst eibhear-b9702be50c05dc66abdc9ef7d2fbe8817679e1fd.zip | |
crontog fixed typos & notify-send
notify-send is here because I want to bind this in my i3 config and having information about it.
Diffstat (limited to '.scripts')
| -rw-r--r-- | .scripts/crontog | 5 |
1 files changed, 5 insertions, 0 deletions
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.") |
