From 87d9d886a1c42a0acfea09d8eee82dd17d747b7b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 22 Nov 2021 18:07:16 +0100 Subject: udpate --- .config/mutt/defaults.muttrc | 2 +- .config/vifm/vifmrc | 26 ++++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) (limited to '.config') 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 complete-query macro index,pager a "set my_pipe_decode=\$pipe_decode pipe_decodeabook --add-emailset pipe_decode=\$my_pipe_decode; unset my_pipe_decode" "add the sender address to abook" macro index \Cr "T~UN." "mark all messages as read" -macro index O "mbsync -a" "run mbsync to sync all mail" +macro index O "mbsync -c /usr/home/jozan/.config/mbsync/mbsyncrc -a" "run mbsync to sync all mail" macro index \Cf "unset wait_keyprintf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms~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' \`\"" "show only messages matching a notmuch pattern" macro index A "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 v map R :restart map x :!sxiv -b -ft * 2>/dev/null & nnoremap o :file & +map l :file map E :!nvim %f map mkd :mkdir -map bg :!setbg %f & +map bg :!setwp %f & map X :!ext %f & nnoremap S :shell nnoremap w :view @@ -50,31 +51,32 @@ map gh :cd ~/ map gr :cd / map gm :cd /media -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 & -- cgit v1.2.3