From 2fe7b0cadef73f36555d54cc716c9b6f2fdf7f6b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 27 Jan 2013 16:03:14 -0500 Subject: move .crontab* into .config/cron --- .config/cron/crontab | 3 +++ .config/cron/local | 10 ++++++++++ .crontab | 3 --- .crontab.local | 10 ---------- Makefile | 8 +++----- 5 files changed, 16 insertions(+), 18 deletions(-) create mode 100644 .config/cron/crontab create mode 100644 .config/cron/local delete mode 100644 .crontab delete mode 100644 .crontab.local diff --git a/.config/cron/crontab b/.config/cron/crontab new file mode 100644 index 0000000..e396cef --- /dev/null +++ b/.config/cron/crontab @@ -0,0 +1,3 @@ +# m h dom mon dow command +*/5 * * * * cd $HOME/.config && make +*/5 * * * * offlineimap-runner 2 -u quiet diff --git a/.config/cron/local b/.config/cron/local new file mode 100644 index 0000000..a4f352f --- /dev/null +++ b/.config/cron/local @@ -0,0 +1,10 @@ +# m h dom mon dow command +#0 4 * * 1-5 /usr/sbin/alsactl restore --file "$HOME/.full.asound" + +#0 5 * * 1-5 cvlc --volume 256 --random $HOME/Music +#30 5 * * 1-5 cvlc --volume 256 --random $HOME/Music +#0 6 * * 1-5 cvlc --volume 256 --random $HOME/Music +#30 6 * * 1-5 cvlc --volume 256 --random $HOME/Music +#0 7 * * * cvlc --volume 256 --random $HOME/Music + +#0 9 * * * cvlc --volume 256 --random $HOME/Music diff --git a/.crontab b/.crontab deleted file mode 100644 index ca405cf..0000000 --- a/.crontab +++ /dev/null @@ -1,3 +0,0 @@ -# m h dom mon dow command -*/5 * * * * cd $HOME && make -*/5 * * * * offlineimap-runner 2 -u quiet diff --git a/.crontab.local b/.crontab.local deleted file mode 100644 index a4f352f..0000000 --- a/.crontab.local +++ /dev/null @@ -1,10 +0,0 @@ -# m h dom mon dow command -#0 4 * * 1-5 /usr/sbin/alsactl restore --file "$HOME/.full.asound" - -#0 5 * * 1-5 cvlc --volume 256 --random $HOME/Music -#30 5 * * 1-5 cvlc --volume 256 --random $HOME/Music -#0 6 * * 1-5 cvlc --volume 256 --random $HOME/Music -#30 6 * * 1-5 cvlc --volume 256 --random $HOME/Music -#0 7 * * * cvlc --volume 256 --random $HOME/Music - -#0 9 * * * cvlc --volume 256 --random $HOME/Music diff --git a/Makefile b/Makefile index 1335456..5e4fb21 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,11 @@ clean: .git.info.exclude: .git.info.exclude.in $(shell echo .??*/) ( cat $<; find $^ -type f -name 'CACHEDIR.TAG' -printf '%h\n'|sed 's@^\./@/@' ) > $@ -.crontab.cookie: .crontab .crontab.local - -(cat $^; echo) | crontab - 2>/dev/null +.cache/cron/cookie: .config/cron + -(cat $^/*; echo) | crontab - 2>/dev/null + mkdir -p '$(@D)' date > '$@' -# don't do anything, just create these if they doesn't exist -.crontab.local: - touch '$@' Maildir: mkdir -p '$@'/{cur,new,tmp} Maildir/%: | Maildir -- cgit v1.2.3-54-g00ecf