APATH := $(realpath .)
FILES := bin
-DOTFILES := goobookrc msmtp* mutt profile tmux.conf weechat Xresources
+DOTFILES := goobookrc msmtp* profile tmux.conf weechat Xresources
CONFIGFILES := aliases compton.conf git mpv offlineimap ranger retroarch xbindkeys xkb
.PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
git clone https://github.com/gmarik/vundle ~/.local/share/vim/vundle
.PHONY: vim
+mutt:
+ ln -sfT $(APATH)/mutt ~/.config/mutt
+.PHONY: mutt
+
gdb:
ln -sfT $(APATH)/gdbinit ~/.gdbinit
ln -sfT $(APATH)/cgdb ~/.cgdb
#alias vp='vim PKGBUILD' # I have a script for that in ~/bin
alias vs='vim SPLITBUILD'
+alias mutt='neomutt'
+
# colours, I want more colours
[[ -x /usr/bin/colordiff ]] && alias diff='colordiff'
# vim: ft=muttrc
-reply-hook . source ~/.mutt/accounts/gmail
-reply-hook "%L chakra" source ~/.mutt/accounts/chakra
-reply-hook "%L unimaas" source ~/.mutt/accounts/unimaas
-reply-hook "%L cadscan" source ~/.mutt/accounts/cadscan
+reply-hook . source $my_config_dir/accounts/gmail
+reply-hook "%L chakra" source $my_config_dir/accounts/chakra
+reply-hook "%L unimaas" source $my_config_dir/accounts/unimaas
+reply-hook "%L cadscan" source $my_config_dir/accounts/cadscan
-folder-hook . source ~/.mutt/accounts/gmail
-folder-hook chakra source ~/.mutt/accounts/chakra
-folder-hook unimaas source ~/.mutt/accounts/unimaas
-folder-hook cadscan source ~/.mutt/accounts/cadscan
+folder-hook . source $my_config_dir/accounts/gmail
+folder-hook chakra source $my_config_dir/accounts/chakra
+folder-hook unimaas source $my_config_dir/accounts/unimaas
+folder-hook cadscan source $my_config_dir/accounts/cadscan
folder-hook .* "exec collapse-all"
folder-hook .* bind index,pager m mail
folder-hook .* bind pager <return> next-line
folder-hook .* set pipe_decode=$my_pipe_decode
-folder-hook youtube 'macro index,pager m "<pipe-message>~/.mutt/mutt_mpv<enter>"'
-folder-hook youtube 'macro pager <return> "<pipe-message>~/.mutt/mutt_mpv<enter>"'
+folder-hook youtube 'macro index,pager m "<pipe-message>$my_config_dir/mutt_mpv<enter>"'
+folder-hook youtube 'macro pager <return> "<pipe-message>$my_config_dir/mutt_mpv<enter>"'
folder-hook youtube 'set my_pipe_decode=$pipe_decode;set pipe_decode=yes'
-text/html; ~/.mutt/mutt_bgrun qutebrowser %s; test=test -n "$DISPLAY"; nametemplate=%s.html
+text/html; $XDG_CONFIG_HOME/mutt_bgrun qutebrowser %s; test=test -n "$DISPLAY"; nametemplate=%s.html
text/html; w3m -I %{charset} -dump %s -T text/html -cols "$COLUMNS" -o display_link_number=1; copiousoutput; nametemplate=%s.html
-application/*; ~/.mutt/mutt_bgrun rifle -f F %s;
+application/*; $XDG_CONFIG_HOME/mutt_bgrun rifle -f F %s;
image/*; rifle -f F %s;
+set my_config_dir = $XDG_CONFIG_HOME/mutt
+
# general settings
alternates -group me samir.benmendil@gmail.com ram-z@hotmail.com @rmz.io
alternates -group me -group chakra ram-z@chakra chakra@rmz.io
hdr_order from: to: cc: date: subject: x-clacks-overhead:
# deal with crap
-set mailcap_path = ~/.mutt/mailcap
+set mailcap_path = $my_config_dir/mailcap
auto_view text/html # view html automatically
alternative_order text/plain text/enriched text/html # save html for last
unset move # do not move read msgs, gmail does that
set postponed = "+gmail/drafts" # drafts folder
set header_cache = "~/.cache/mutt" # cache headers for speedss
-source ~/.mutt/mailboxes # source mailboxes generetated by offlineimap
+source $my_config_dir/mailboxes # source mailboxes generetated by offlineimap
# SMTP: msmtp
set sendmail = /usr/bin/msmtp # use msmtp
send-hook . "set crypt_autosign = yes"
send-hook "%t nosign" "set crypt_autosign = no"
-source ~/.mutt/hooks
-source ~/.mutt/bindings
-source ~/.mutt/colors/badfox # color theme
+source $my_config_dir/hooks
+source $my_config_dir/bindings
+source $my_config_dir/colors/badfox # color theme
[mbnames]
enabled = yes
-filename = ~/.mutt/mailboxes
+filename = $my_config_dir/mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "