diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-27 19:06:29 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-27 19:06:29 -0500 |
commit | 6ad5f1cfda26c41fb1b7d06030c1918c06a3aad2 (patch) | |
tree | 98297a53d3e8642dcc001c073f5b1d73590c58f0 /Makefile.hornet | |
parent | 579e180c033d102859fdb74495170a743cecc3a0 (diff) | |
download | conf-6ad5f1cfda26c41fb1b7d06030c1918c06a3aad2.tar.gz conf-6ad5f1cfda26c41fb1b7d06030c1918c06a3aad2.zip |
switch from offlineimap to mbsync
Diffstat (limited to 'Makefile.hornet')
-rw-r--r-- | Makefile.hornet | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile.hornet b/Makefile.hornet index 49917bd..b79144d 100644 --- a/Makefile.hornet +++ b/Makefile.hornet @@ -7,9 +7,9 @@ INSTALL := \ .config/i3/terminal-workspace.json \ .config/i3status/config \ .config/msmtp/config \ - .config/offlineimap/config \ - .config/offlineimap/pass.py \ .config/perspektiv/config.toml \ + .mbsyncrc \ + .mbsyncloop \ .mpdscribble \ .notmuch-config \ .ssh/authorized_keys \ @@ -25,6 +25,7 @@ EMPTYDIRS := \ $(patsubst services/available/%,.log/%,$(wildcard services/available/*)) \ Maildir \ .cache/mpd \ + .cache/notmuch \ .config/mpd/playlists INSTALL_CUSTOM := \ @@ -34,7 +35,8 @@ INSTALL_CUSTOM := \ BUILD := \ config/alacritty/alacritty.yml \ - mpdscribble/mpdscribble.conf + mpdscribble/mpdscribble.conf \ + mbsyncloop install :: @chmod 600 config/msmtp/config @@ -66,6 +68,9 @@ config/darksky : config/darksky/api : config/darksky rbw get darksky.net api > $@ +mbsyncloop: mbsyncrc + @sed 's/^PassCmd.*/PassCmd "head -n1 \/run\/user\/1000\/mbsyncloop"/' mbsyncrc > mbsyncloop + mpdscribble/mpdscribble.conf : mpdscribble/mpdscribble.conf.tmpl pass="$$(rbw get last.fm doyster)" &&\ perl -E'while (<STDIN>) { if (/^password =/) { say "password = $$ARGV[0]" } else { print } }' "$$pass" < $< > $@ |