mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2023-02-13 20:55:19 -05:00
Editing vifm configs to use ueberzug for video previews as well as image previews.
This commit is contained in:
parent
373135ef7a
commit
ae89cde7d2
2 changed files with 11 additions and 6 deletions
|
@ -7,7 +7,13 @@ if [ -e "$FIFO_UEBERZUG" ]; then
|
|||
[x]="$2" [y]="$3" [width]="$4" [height]="$5" \
|
||||
[path]="${PWD}/$6") \
|
||||
> "$FIFO_UEBERZUG"
|
||||
else
|
||||
elif [[ "$1" == "videopreview" ]]; then
|
||||
[[ ! -f "/tmp/$6.png" ]] && ffmpegthumbnailer -i "${PWD}/$6" -o "/tmp/$6.png" -s 0 -q 10
|
||||
declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW"
|
||||
[x]="$2" [y]="$3" [width]="$4" [height]="$5" \
|
||||
[path]="/tmp/$6.png") \
|
||||
> "$FIFO_UEBERZUG"
|
||||
elif [[ "$1" == "clear" ]]; then
|
||||
declare -p -A cmd=([action]=remove [identifier]="$ID_PREVIEW") \
|
||||
> "$FIFO_UEBERZUG"
|
||||
fi
|
||||
|
|
|
@ -217,7 +217,10 @@ filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
|||
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||
\*.as[fx]
|
||||
\ ffprobe -pretty %c 2>&1
|
||||
\ vifmimg videopreview %px %py %pw %ph %c
|
||||
\ %pc
|
||||
\ vifmimg clear
|
||||
" \ ffprobe -pretty %c 2>&1
|
||||
|
||||
" Web
|
||||
filextype *.html,*.htm
|
||||
|
@ -246,10 +249,6 @@ filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
|||
\ feh %d &,
|
||||
\ {View in cacaview}
|
||||
\ cacaview %c &,
|
||||
\ {View in gpicview}
|
||||
\ gpicview %c,
|
||||
\ {View in shotwell}
|
||||
\ shotwell,
|
||||
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
||||
\ vifmimg draw %px %py %pw %ph %c
|
||||
\ %pc
|
||||
|
|
Loading…
Add table
Reference in a new issue