Unverified Commit d4f6abf1 authored by Ben Lönnqvist's avatar Ben Lönnqvist Committed by GitHub

Refactor ueberzug (#1614)

The previous way ueberzug was used is now deprecated.
parent d76d92f6
...@@ -4327,15 +4327,14 @@ display_image() { ...@@ -4327,15 +4327,14 @@ display_image() {
if [ "$wait" = true ];then if [ "$wait" = true ];then
wait=false; wait=false;
else else
source "$(ueberzug library)" ueberzug layer --parser bash 0< <(
ImageLayer 0< <( declare -Ap ADD=(\
ImageLayer::add\ [action]="add"\
['identifier']="neofetch"\ [identifier]="neofetch"\
['x']="$xoffset" ['y']="$yoffset"\ [x]=$xoffset [y]=$yoffset\
['max_width']="$((width / font_width))"\ [path]=$image\
['max_height']="$((height / font_height))"\ )
['path']="$image"; read -rs
read -rs;
) )
fi fi
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment