dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

commit cf93a2599aff670431a4a0f67d4ebfd40e528d26
parent 6d06fc248d7748ebbdf05f2d474fa702a7136705
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date:   Sat, 21 Jan 2023 14:50:51 +0530

Add alacritty/unstaged.yml to .gitignore

...settings that vary much for the current setup will be added here like
font size. The default hard-coded font size is removed in favour of this
in font.yml.

Add comfortable vi-like bindings for mutt

Add mutt/mailcap for better integration with other cli tools

Welcome mutt into .gitignore

Diffstat:
M.config/.gitignore | 12+++++++-----
M.config/alacritty/alacritty.yml | 1+
M.config/alacritty/font.yml | 1-
M.config/mutt/keybindings | 10++++++++--
A.config/mutt/mailcap | 10++++++++++
M.config/mutt/ui | 1-
6 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/.config/.gitignore b/.config/.gitignore @@ -3,18 +3,16 @@ !.gitignore !X11/ +!X11/Xresources !X11/keybindings !X11/xinitrc -!X11/Xresources !alacritty/ !alacritty/** !bash/ !bash/** !clink !clink/clink_settings -cmd/userenv.bat !cmd/ -# TODO specify each file individually !cmd/ !git/ !git/config @@ -24,6 +22,8 @@ cmd/userenv.bat !lynx/ !lynx/lynx.cfg !lynx/lynx.lss +!mutt/ +!mutt/** !nvim/ !nvim/** !sh/ @@ -35,6 +35,8 @@ cmd/userenv.bat !vim/** !wgetrc -alacritty/windows.yml -alacritty/mac.yml alacritty/light-theme.yml +alacritty/mac.yml +alacritty/unstaged.yml +alacritty/windows.yml +cmd/userenv.bat diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml @@ -8,6 +8,7 @@ import: - ~/.config/alacritty/windows.yml - ~/.config/alacritty/mac.yml - ~/.config/alacritty/bindings.yml + - ~/.config/alacritty/unstaged.yml live_config_reload: true diff --git a/.config/alacritty/font.yml b/.config/alacritty/font.yml @@ -1,5 +1,4 @@ font: - size: 12 normal: family: Bitstream Vera Sans Mono style: Roman diff --git a/.config/mutt/keybindings b/.config/mutt/keybindings @@ -40,7 +40,7 @@ bind pager \005 next-line # Mouse wheel bind editor <Tab> complete-query macro index S "<shell-escape>mbsync -c \"$XDG_CONFIG_HOME\"/isync/mbsyncrc -aV<enter>" "sync email" -macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" +macro index,pager gi "<change-folder>=Inbox<enter>" "go to inbox" macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts" macro index,pager gj "<change-folder>=Junk<enter>" "go to junk" macro index,pager gt "<change-folder>=Trash<enter>" "go to trash" @@ -49,7 +49,7 @@ macro index,pager gb "<change-folder>=Business<enter>" "go to Business" macro index,pager ga "<change-folder>=Archive<enter>" "go to archive" macro index,pager gf "<change-folder>=Friends<enter>" "go to Friends" macro index,pager gF "<change-folder>=Family<enter>" "go to Family" -macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" +macro index,pager Mi ";<save-message>=Inbox<enter>" "move mail to inbox" macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts" macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk" macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash" @@ -66,3 +66,9 @@ macro index O "<shell-escape>mw -Y<enter>" "run mw -Y to sync all mail" macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>printf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern" macro index A "<limit>all\n" "show all messages (undo limit)" +bind index,pager \Ck sidebar-prev +bind index,pager \Cj sidebar-next +bind index,pager \Co sidebar-open +bind index,pager \Cp sidebar-prev-new +bind index,pager \Cn sidebar-next-new +bind index,pager B sidebar-toggle-visible diff --git a/.config/mutt/mailcap b/.config/mutt/mailcap @@ -0,0 +1,10 @@ +text/plain; $EDITOR %s ; +text/html; open %s ; nametemplate=%s.html +text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput; +image/*; open %s ; +video/*; setsid mpv --quiet %s &; copiousoutput +audio/*; mpv %s ; +application/pdf; open %s ; +application/pgp-encrypted; gpg -d '%s'; copiousoutput; +application/pgp-keys; gpg --import '%s'; copiousoutput; + diff --git a/.config/mutt/ui b/.config/mutt/ui @@ -69,4 +69,3 @@ color body brightyellow red "^gpg: BAD signature from.*" mono body bold "^gpg: Good signature" mono body bold "^gpg: BAD signature from.*" color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" -