dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit b3b887643d3e133590f98d7fc3009bd8bab3bdc3
parent 9edb834558cd5ff3d5a36bcc0b20668844abc234
Author: Chris Noxz <chris@noxz.tech>
Date:   Tue, 28 Jan 2020 19:09:33 +0100

[vifm] Make vifm preview media using 'mpvc'

Diffstat:
Mvifm/.config/vifm/vifmrc | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc @@ -60,11 +60,10 @@ nnoremap ,p :!sxiv -t %c 2>/dev/null &<cr> filextype *.pdf,*.ps \ zathura %c 2>/dev/null & -" open videos with mpv (in background) -filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, - \ *.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, - \ mpv %c 2>/dev/null & - +" send media to mpvd (in bakground) +filextype *.avi,*.mp3,*.mp4,*.wmv,*.dat,*.3gp,*.ogg,*.ogv,*.mkv,*.mpg,*.mpeg, + \ *.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, + \ mpvc load %c 2>/dev/null & fileviewer *.zip unzip -Z1 %c | fold -w $((%pw-1)) | sed -e 's/^/ /' fileviewer *.tar tar -tf %c | fold -w $((%pw-1)) | sed -e 's/^/ /' @@ -99,7 +98,7 @@ fileviewer *.gif " disable preview of binary files (or files not yet handled) fileviewer * \ grep -P "[^\x00-\x7F]" %c 2>&1 >/dev/null - \ && echo " binary file:" %c + \ && mediainfo %c \ || cat %c | fold -w $((%pw-1)) | sed -e 's/^/ /' " time format