Tweak vifm handling of video and image
This commit is contained in:
parent
13f7ab647a
commit
0c1d55c956
5 changed files with 34 additions and 22 deletions
|
@ -25,6 +25,7 @@ save-position-on-quit=yes
|
|||
|
||||
# Disable video output
|
||||
vid=no
|
||||
fs=no
|
||||
|
||||
# Profile for terminal-only
|
||||
[terminal]
|
||||
|
|
|
@ -205,6 +205,7 @@ filextype {*.djvu},<image/vnd.djvu>
|
|||
" Audio
|
||||
filetype {*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus},
|
||||
\<audio/*>
|
||||
\ mpv --profile=audio %f,
|
||||
\ {Play using ffplay}
|
||||
\ ffplay -nodisp -autoexit %c,
|
||||
\ {Play using MPlayer}
|
||||
|
@ -217,6 +218,7 @@ 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]},
|
||||
\<video/*>
|
||||
\ mpv %f,
|
||||
\ vlc %f &,
|
||||
\ {View using ffplay}
|
||||
\ ffplay -fs -autoexit %f,
|
||||
|
@ -250,7 +252,7 @@ fileviewer {*.[1-8]},<text/troff> man ./%c | col -b
|
|||
" Images
|
||||
filextype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
|
||||
\ {View in sxiv}
|
||||
\ sxiv %f,
|
||||
\ nsxiv %f &,
|
||||
\ {View in gpicview}
|
||||
\ gpicview %c,
|
||||
\ {View in shotwell}
|
||||
|
@ -272,7 +274,7 @@ filextype *.vym
|
|||
|
||||
" Markdown
|
||||
filextype {*.md}
|
||||
\ typora,
|
||||
\ marktext %f,
|
||||
fileviewer {*.md}
|
||||
\ glow,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue