dotfiles

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

commit 196100ea661784d3147367d85ccb8a0dd1065207
parent 6bb0eeea7b7670416eaae288f4275346b3818137
Author: Bharatvaj <bharatvaj@yahoo.com>
Date:   Sat, 21 Jan 2023 23:20:03 +0530

Merge branch 'main' of getsh.org:dotfiles

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-
A.config/nvim/lua/unstaged.lua | 0
M.local/bin/sh/pofs | 4++--
8 files changed, 28 insertions(+), 11 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/bashrc !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/init.lua !nvim/lua/keybindings.lua @@ -36,6 +36,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 @@ -7,6 +7,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: Fira Mono style: Regular 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<>\"]" - diff --git a/.config/nvim/lua/unstaged.lua b/.config/nvim/lua/unstaged.lua diff --git a/.local/bin/sh/pofs b/.local/bin/sh/pofs @@ -4,6 +4,6 @@ cd "${PASSWORD_STORE_DIR}" || exit 1 -selection="$(find -L totp -name '*.gpg' | sed 's/.gpg$//g' | ${FUZZER})" +selection="$(find -L totp -name "*.gpg" | sed 's/.gpg$//g' | ${FUZZER} -q "$*")" -test -z "${selection}" || pass otp ${1} "${selection}" +test -z "${selection}" || pass otp "${selection}"