mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-20 18:54:39 +10:00
Editing vifm configs to use ueberzug for video previews as well as image previews.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user