diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-02-25 23:51:01 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-02-26 01:52:00 -0500 |
commit | 5d5405115ee1059a205d25ff972e12256d09a1b5 (patch) | |
tree | 387e4f45de7f4bcba093a0cb6a597d640224210d /Makefile.hornet | |
parent | 449036cf4077218264b8235d0e9cd475f3fa20f3 (diff) | |
download | conf-5d5405115ee1059a205d25ff972e12256d09a1b5.tar.gz conf-5d5405115ee1059a205d25ff972e12256d09a1b5.zip |
reconfigure various things for hornet
Diffstat (limited to 'Makefile.hornet')
-rw-r--r-- | Makefile.hornet | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/Makefile.hornet b/Makefile.hornet new file mode 100644 index 0000000..7738dc2 --- /dev/null +++ b/Makefile.hornet @@ -0,0 +1,74 @@ +INSTALL := \ + .config/alacritty/alacritty.yml \ + .config/darksky/api \ + .config/i3/browser-workspace.json \ + .config/i3/config \ + .config/i3/signal-workspace.json \ + .config/i3/terminal-workspace.json \ + .config/i3status/config \ + .config/msmtp/config \ + .config/offlineimap/config \ + .config/offlineimap/pass.py \ + .config/perspektiv/config.toml \ + .config/touchegg/touchegg.conf \ + .gnupg/gpg.conf \ + .gnupg/gpg-agent.conf \ + .mpdscribble \ + .notmuch-config \ + .ssh/authorized_keys \ + .xbindkeysrc \ + .Xdefaults \ + .xinitrc \ + .xprofile \ + .Xmodmap \ + $(patsubst %,.%,$(wildcard services/available/*/run)) \ + $(patsubst %,.%,$(wildcard services/available/*/log/run)) + +EMPTYDIRS := \ + $(patsubst services/available/%,.log/%,$(wildcard services/available/*)) \ + Maildir \ + .cache/mpd \ + .config/mpd/playlists + +INSTALL_CUSTOM := \ + $(patsubst services/available/%,$(INTO)/.services/enabled/%,$(wildcard services/available/*)) \ + /var/spool/cron/$(USER) \ + $(INTO)/Maildir/.notmuch/hooks/post-new + +BUILD := \ + config/alacritty/alacritty.yml \ + mpdscribble/mpdscribble.conf + +install :: + @chmod 600 config/msmtp/config + +clean :: + @crontab -r + +/var/spool/cron/$(USER) : crontab + @crontab $< + +$(INTO)/Maildir/.notmuch/hooks/post-new: notmuch/hooks/post-new + @[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak + $(MKDIR) $(INTO)/Maildir/.notmuch/hooks + $(LN) $(PWD)/$< $@ + +$(INTO)/.services/enabled : + $(MKDIR) $@ + +$(INTO)/.services/enabled/% : services/available/% $(INTO)/.services/enabled + $(MKDIR) $(dir $<) + $(LN) ../available/$(notdir $<) $@ + +config/alacritty/alacritty.yml : config/alacritty/alacritty.yml.hornet + $(LN) $(notdir $<) $@ + +config/darksky : + $(MKDIR) $@ + +config/darksky/api : config/darksky + rbw get darksky.net api > $@ + +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" < $< > $@ |