Refactor ueberzug (#1614)

The previous way ueberzug was used is now deprecated.
This commit is contained in:
Ben Lönnqvist 2020-11-24 17:30:55 +02:00 committed by GitHub
parent d76d92f6b8
commit d4f6abf1a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4327,15 +4327,14 @@ display_image() {
if [ "$wait" = true ];then
wait=false;
else
source "$(ueberzug library)"
ImageLayer 0< <(
ImageLayer::add\
['identifier']="neofetch"\
['x']="$xoffset" ['y']="$yoffset"\
['max_width']="$((width / font_width))"\
['max_height']="$((height / font_height))"\
['path']="$image";
read -rs;
ueberzug layer --parser bash 0< <(
declare -Ap ADD=(\
[action]="add"\
[identifier]="neofetch"\
[x]=$xoffset [y]=$yoffset\
[path]=$image\
)
read -rs
)
fi
;;