dotfiles

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

commit 9e06fa74ede9244c11e8f3b900344e6a7b583a70
parent a7c145c28b877ecddb4a9a3a17f5050916e9517c
Author: Chris Noxz <chris@noxz.tech>
Date:   Sun, 20 Oct 2019 11:03:13 +0200

[vifm] Add support for playing videos

Diffstat:
Mvifm/.config/vifm/vifmrc | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc @@ -52,13 +52,19 @@ highlight /(.tar.gz|.tar)$/ " open images with sxiv (in background) filextype *.ff,*.ff.gz,*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm - \ sxiv %c & + \ sxiv %c 2>/dev/null & " open current file in sxiv (TODO :: if %c is not dir, take it's dir) -nnoremap ,p :!sxiv -t %c &<cr> +nnoremap ,p :!sxiv -t %c 2>/dev/null &<cr> " open pdf and ps with zathura (in background) filextype *.pdf,*.ps - \ zathura %c & + \ 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 & + fileviewer *.tar tar -tf %c | fold -w $((%pw-1)) | sed -e 's/^/ /' fileviewer *.tar.gz tar -ztf %c | fold -w $((%pw-1)) | sed -e 's/^/ /' @@ -72,7 +78,7 @@ fileviewer *.epub \ %pc \ vifmimg clear fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, - \*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, + \ *.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, \ vifmimg videopreview %px %py %pw %ph %c \ %pc \ vifmimg clear