diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2021-11-22 18:07:16 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2021-11-22 18:07:16 +0100 |
commit | 87d9d886a1c42a0acfea09d8eee82dd17d747b7b (patch) | |
tree | 0cc4a3d318ad2bbfe7593ed4d94f8f95c1ce5266 | |
parent | new name (diff) | |
download | dotfiles-bsd-87d9d886a1c42a0acfea09d8eee82dd17d747b7b.tar.gz dotfiles-bsd-87d9d886a1c42a0acfea09d8eee82dd17d747b7b.tar.bz2 dotfiles-bsd-87d9d886a1c42a0acfea09d8eee82dd17d747b7b.tar.xz dotfiles-bsd-87d9d886a1c42a0acfea09d8eee82dd17d747b7b.tar.zst dotfiles-bsd-87d9d886a1c42a0acfea09d8eee82dd17d747b7b.zip |
udpate
-rw-r--r-- | .config/mutt/defaults.muttrc | 2 | ||||
-rw-r--r-- | .config/vifm/vifmrc | 26 |
2 files changed, 15 insertions, 13 deletions
diff --git a/.config/mutt/defaults.muttrc b/.config/mutt/defaults.muttrc index fadf2f7..0126aa5 100644 --- a/.config/mutt/defaults.muttrc +++ b/.config/mutt/defaults.muttrc @@ -71,7 +71,7 @@ bind editor <Tab> complete-query macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook" macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read" -macro index O "<shell-escape>mbsync -a<enter>" "run mbsync to sync all mail" +macro index O "<shell-escape>mbsync -c /usr/home/jozan/.config/mbsync/mbsyncrc -a<enter>" "run mbsync 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)" diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 1642a72..1fee1d1 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -28,9 +28,10 @@ map <C-v> <C-w>v map R :restart<CR> map x :!sxiv -b -ft * 2>/dev/null &<CR> nnoremap o :file &<cr> +map l :file <cr><cr> map E :!nvim %f<CR> map mkd :mkdir<space> -map bg :!setbg %f &<CR> +map bg :!setwp %f &<CR> map X :!ext %f &<CR> nnoremap S :shell<cr> nnoremap w :view<cr> @@ -50,31 +51,32 @@ map gh :cd ~/<CR> map gr :cd /<CR> map gm :cd /media<CR> -fileview */ exa -L 1 -T --color=always --group-directories-first %c -fileview ../ exa -L 1 -T --color=always --group-directories-first %c +fileviewer */ exa -L 1 -T --color=always --group-directories-first %c +fileviewer ../ exa -L 1 -T --color=always --group-directories-first %c fileviewer *.html w3m -dump %c -filextype *.html,*.htm firefox %f 2>/dev/null & +filextype *.html,*.htm {firefox} firefox %f >/dev/null 2>&1 &, +filextype *.html,*.htm {w3m} st -e w3m %f >/dev/null 2>&1 &, fileviewer *.docx docx2txt %c - fileviewer *.odt odt2txt %c - -filetype *.csv,*.xlsx sc-im %c fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw +filetype *.csv,*.xlsx sc-im %c -filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus st -e mpv --no-audio-display --audio-channels=stereo %c &, -fileviewer *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus file -filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub zathura %f 2>/dev/null &, fileviewer *.pdf pdftotext -l 1 -nopgbrk %c - -fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*mp3,*.flac file -filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx] mpv --fullscreen --really-quiet --audio-channels=stereo %f 2>/dev/null &, +filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub zathura %f 2>/dev/null &, +fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus file %c +filextype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus {mpv} st -e mpv --no-audio-display --audio-channels=stereo %f &, +filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx] {mpv} mpv --fullscreen --really-quiet --audio-channels=stereo %f 2>/dev/null &, -fileview *.zip,*.rar,*.tar.gz atool -l %f +fileviewer *.zip,*.rar,*.tar.gz atool -l %f filetype *.zip,*.rar,*.tar.gz ext %f fileviewer *.[1-8] man ./%c | col -b filetype *.[1-8] man ./%c -filextype *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm sxiv -b -ia %f 2>/dev/null & +fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm file &c +filextype *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm sxiv -b -ia %f 2>/dev/null & filextype *.svg inkscape %f 2>/dev/null & filextype *.xcf gimp %f 2>/dev/null & |