I'm running the XFCE edition of Manjaro have just finished heavily customizing it to fit a theme but have unfortunately run into a roadblock. I'm trying to get neofetch to display an image instead of the default Manjaro ascii logo and whenever I change the backend and supply my source image it straight up doesn't even run, I get a blank line followed by a prompt. Here is my neofetch command that I'm running:
neofetch --backend w3m --loop --source '/home/dblue/Pictures/test.png' --size 300px --xoffset 40 --yoffset 30 --color_blocks off --underline_char '=' --colors 200 300 300 200 300 45
it is worth noting that if I run the same command in kitty with --loop
as an option it works fine.
Here is what comes out of running neofetch with -vv
:
+ verbose=on
+ shift
+ [[ -n --backend ]]
+ case "$1" in
+ image_backend=w3m
+ shift
+ [[ -n w3m ]]
+ case "$1" in
+ shift
+ [[ -n --loop ]]
+ case "$1" in
+ image_loop=on
+ shift
+ [[ -n --source ]]
+ case "$1" in
+ image_source=/home/dblue/Pictures/test.png
+ shift
+ [[ -n /home/dblue/Pictures/test.png ]]
+ case "$1" in
+ shift
+ [[ -n --size ]]
+ case "$1" in
+ image_size=300px
+ shift
+ [[ -n 300px ]]
+ case "$1" in
+ shift
+ [[ -n --xoffset ]]
+ case "$1" in
+ xoffset=40
+ shift
+ [[ -n 40 ]]
+ case "$1" in
+ shift
+ [[ -n --yoffset ]]
+ case "$1" in
+ yoffset=30
+ shift
+ [[ -n 30 ]]
+ case "$1" in
+ shift
+ [[ -n --color_blocks ]]
+ case "$1" in
+ color_blocks=off
+ shift
+ [[ -n off ]]
+ case "$1" in
+ shift
+ [[ -n --underline_char ]]
+ case "$1" in
+ underline_char==
+ shift
+ [[ -n = ]]
+ case "$1" in
+ shift
+ [[ -n --colors ]]
+ case "$1" in
+ unset colors
+ for arg in "$2" "$3" "$4" "$5" "$6" "$7"
+ case "$arg" in
+ colors+=("$arg")
+ for arg in "$2" "$3" "$4" "$5" "$6" "$7"
+ case "$arg" in
+ colors+=("$arg")
+ for arg in "$2" "$3" "$4" "$5" "$6" "$7"
+ case "$arg" in
+ colors+=("$arg")
+ for arg in "$2" "$3" "$4" "$5" "$6" "$7"
+ case "$arg" in
+ colors+=("$arg")
+ for arg in "$2" "$3" "$4" "$5" "$6" "$7"
+ case "$arg" in
+ colors+=("$arg")
+ for arg in "$2" "$3" "$4" "$5" "$6" "$7"
+ case "$arg" in
+ colors+=("$arg")
+ colors+=(7 7 7 7 7 7)
+ shift
+ [[ -n 200 ]]
+ case "$1" in
+ shift
+ [[ -n 300 ]]
+ case "$1" in
+ shift
+ [[ -n 300 ]]
+ case "$1" in
+ shift
+ [[ -n 200 ]]
+ case "$1" in
+ shift
+ [[ -n 300 ]]
+ case "$1" in
+ shift
+ [[ -n 45 ]]
+ case "$1" in
+ shift
+ [[ -n '' ]]
+ [[ on != \o\n ]]
+ get_simple -vv --backend w3m --loop --source /home/dblue/Pictures/test.png --size 300px --xoffset 40 --yoffset 30 --color_blocks off --underline_char = --colors 200 300 300 200 300 45
+ [[ -n -vv ]]
++ type -t get_-vv
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n --backend ]]
++ type -t get_--backend
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n w3m ]]
++ type -t get_w3m
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n --loop ]]
++ type -t get_--loop
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n --source ]]
++ type -t get_--source
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n /home/dblue/Pictures/test.png ]]
++ type -t get_/home/dblue/Pictures/test.png
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n --size ]]
++ type -t get_--size
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n 300px ]]
++ type -t get_300px
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n --xoffset ]]
++ type -t get_--xoffset
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n 40 ]]
++ type -t get_40
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n --yoffset ]]
++ type -t get_--yoffset
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n 30 ]]
++ type -t get_30
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n --color_blocks ]]
++ type -t get_--color_blocks
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n off ]]
++ type -t get_off
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n --underline_char ]]
++ type -t get_--underline_char
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n = ]]
++ type -t get_=
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n --colors ]]
++ type -t get_--colors
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n 200 ]]
++ type -t get_200
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n 300 ]]
++ type -t get_300
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n 300 ]]
++ type -t get_300
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n 200 ]]
++ type -t get_200
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n 300 ]]
++ type -t get_300
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n 45 ]]
++ type -t get_45
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n '' ]]
+ (( simple ))
+ get_distro
+ [[ -n '' ]]
+ case "$os" in
+ [[ -f /bedrock/etc/bedrock-release ]]
+ [[ -f /etc/redstar-release ]]
+ [[ -f /etc/siduction-version ]]
+ type -p lsb_release
+ case "$distro_shorthand" in
+ lsb_flags=-sd
++ lsb_release -sd
+ distro='"Manjaro Linux"'
+ [[ Linux version 5.3.11-1-MANJARO (builder@a7347f67d605) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Wed Nov 13 12:21:14 UTC 2019 == *Microsoft* ]]
+ [[ 5.3.11-1-MANJARO == *Microsoft* ]]
+ [[ Linux version 5.3.11-1-MANJARO (builder@a7347f67d605) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Wed Nov 13 12:21:14 UTC 2019 == *chrome-bot* ]]
+ [[ -f /dev/cros_ec ]]
++ trim_quotes '"Manjaro Linux"'
++ trim_output='"Manjaro Linux"'
++ trim_output='Manjaro Linux'
++ printf %s 'Manjaro Linux'
+ distro='Manjaro Linux'
+ distro='Manjaro Linux'
+ distro='Manjaro Linux'
+ [[ -z Manjaro Linux ]]
+ case "$os" in
+ machine_arch=x86_64
+ [[ on == \o\n ]]
+ distro+=' x86_64'
+ [[ auto == \a\u\t\o ]]
++ trim 'Manjaro Linux x86_64'
++ set -f
++ set -- Manjaro Linux x86_64
++ printf '%s\n' 'Manjaro Linux x86_64'
++ set +f
+ ascii_distro='Manjaro Linux x86_64'
+ get_bold
+ case "$ascii_bold" in
+ ascii_bold='\e[1m'
+ case "$bold" in
+ bold='\e[1m'
+ get_distro_ascii
+ case "$(trim "$ascii_distro")" in
++ trim 'Manjaro Linux x86_64'
++ set -f
++ set -- Manjaro Linux x86_64
++ printf '%s\n' 'Manjaro Linux x86_64'
++ set +f
+ set_colors 2 7
++ color 2
++ case "$1" in
++ printf '%b\e[3%sm' '\e[0m' 2
+ c1='\e[1m'
++ color 7
++ case "$1" in
++ printf '\e[37m%b' '\e[0m'
+ c2='\e[1m'
++ color ''
++ case "$1" in
++ printf '\e[38;5;%bm' ''
+ c3='\e[1m'
++ color ''
++ case "$1" in
++ printf '\e[38;5;%bm' ''
+ c4='\e[1m'
++ color ''
++ case "$1" in
++ printf '\e[38;5;%bm' ''
+ c5='\e[1m'
++ color ''
++ case "$1" in
++ printf '\e[38;5;%bm' ''
+ c6='\e[1m'
+ [[ '' != \o\f\f ]]
+ set_text_colors 2 7
+ [[ 200 == \d\i\s\t\r\o ]]
++ color 200
++ case "$1" in
++ printf '\e[38;5;%bm' 200
+ title_color=''
++ color 300
++ case "$1" in
++ printf '\e[38;5;%bm' 300
+ at_color=''
++ color 300
++ case "$1" in
++ printf '\e[38;5;%bm' 300
+ underline_color=''
++ color 200
++ case "$1" in
++ printf '\e[38;5;%bm' 200
+ subtitle_color=''
++ color 300
++ case "$1" in
++ printf '\e[38;5;%bm' 300
+ colon_color=''
++ color 45
++ case "$1" in
++ printf '\e[38;5;%bm' 45
+ info_color=''
+ [[ distro == \d\i\s\t\r\o ]]
++ color fg
++ case "$1" in
++ printf '\e[37m%b' '\e[0m'
+ bar_color_elapsed=''
+ case "$bar_color_total $1" in
++ color 7
++ case "$1" in
++ printf '\e[37m%b' '\e[0m'
+ bar_color_total=''
+ read -rd '' ascii_data
+ [[ distro != \d\i\s\t\r\o ]]
+ [[ off == \o\n ]]
+ [[ xterm-256color != \m\i\n\i\x ]]
+ [[ off != \o\n ]]
+ trap 'printf "\e[?25h\e[?7h"' EXIT
+ printf '\e[?25l\e[?7l'
+ image_backend
+ [[ w3m != \o\f\f ]]
+ type -p convert
+ case "${image_backend:-off}" in
+ get_image_source
+ case "$image_source" in
++ get_full_path /home/dblue/Pictures/test.png
++ [[ -f /home/dblue//home/dblue/Pictures/test.png ]]
++ cd /home/dblue/Pictures
++ local full_dir=test.png
++ [[ -L test.png ]]
+++ pwd -P
++ full_dir=/home/dblue/Pictures/test.png
++ [[ -e /home/dblue/Pictures/test.png ]]
++ printf '%s\n' /home/dblue/Pictures/test.png
+ image_source=/home/dblue/Pictures/test.png
+ [[ -d /home/dblue/Pictures/test.png ]]
+ image=/home/dblue/Pictures/test.png
+ err 'Image: Using image '\''/home/dblue/Pictures/test.png'\'''
++ color 1
++ case "$1" in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Image: Using image '\''/home/dblue/Pictures/test.png'\''
'
+ [[ ! -f /home/dblue/Pictures/test.png ]]
+ get_window_size
+ [[ w3m == \k\i\t\t\y ]]
+ (( 0 < 50 ))
+ [[ -n :0.0 ]]
+ [[ Linux != \M\a\c\ \O\S\ \X ]]
+ type -p xdotool
+ type -p xwininfo
+ type -p xdo
+ type -p xdpyinfo
++ xdpyinfo
++ grep -F focus:
+ current_window='focus: window 0x4c00004, revert to Parent'
+ current_window='0x4c00004, revert to Parent'
+ current_window=0x4c00004
+ [[ -n 0x4c00004 ]]
++ xwininfo -id 0x4c00004
+ term_size='
xwininfo: Window id: 0x4c00004 (has no name)
Absolute upper-left X: 0
Absolute upper-left Y: 27
Relative upper-left X: -1
Relative upper-left Y: -1
Width: 1
Height: 1
Depth: 0
Visual: 0x82
Visual Class: TrueColor
Border width: 0
Class: InputOnly
Colormap: 0x0 (not installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+27 -1919+27 -1919-1052 +0-1052
-geometry 1x1+0+0'
+ term_width='1
Height: 1
Depth: 0
Visual: 0x82
Visual Class: TrueColor
Border width: 0
Class: InputOnly
Colormap: 0x0 (not installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+27 -1919+27 -1919-1052 +0-1052
-geometry 1x1+0+0'
+ term_width=1
+ term_height='1
Depth: 0
Visual: 0x82
Visual Class: TrueColor
Border width: 0
Class: InputOnly
Colormap: 0x0 (not installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+27 -1919+27 -1919-1052 +0-1052
-geometry 1x1+0+0'
+ term_height=1
+ term_width=1
+ (( term_width < 1 ))
+ printf '\e[2J\e[H'
+ get_image_size
+ get_term_size
+ read -r lines columns
++ stty size
+ font_width=0
+ font_height=0
+ case "$image_size" in
+ image_size=300
+ [[ w3m == \w\3\m ]]
+ term_padding
+ [[ -z '' ]]
+ get_term
+ (( term_run == 1 ))
+ case "$TERM_PROGRAM" in
+ term=
+ [[ xterm-256color == \t\w\5\2 ]]
+ [[ xterm-256color == \t\w\1\0\0 ]]
+ [[ -n '' ]]
+ [[ -z '' ]]
++ get_ppid ''
++ case "$os" in
+++ grep -i -F PPid: /proc/5623/status
++ ppid='PPid: 5619'
+++ trim ' 5619'
+++ set -f
+++ set -- 5619
+++ printf '%s\n' 5619
+++ set +f
++ ppid=5619
++ printf %s 5619
+ parent=5619
+ [[ -z 5619 ]]
++ get_process_name 5619
++ case "$os" in
++ name=xfce4-terminal
++ printf %s xfce4-terminal
+ name=xfce4-terminal
+ case "${name// }" in
+ [[ Linux == Linux ]]
++ realpath /proc/5619/exe
+ term=/usr/bin/xfce4-terminal
+ term=xfce4-terminal
+ [[ xfce4-terminal == .*-wrapped ]]
+ [[ -z xfce4-terminal ]]
+ term_run=1
+ case "$term" in
+ width=300
+ height=300
/usr/bin/neofetch: line 3793: (width + padding + xoffset) / font_width + gap: division by 0 ()
+ printf '\e[?25h\e[?7h'