Hi All, I am trying to modify my neofetch.
I want it to display information about my hard disk. I have tried different syntaxes and the most I have been able to do is to get this message when I run neofetch:
(claudio@claudio-mabox ~ $ neofetch /home/claudio/.config/neofetch/config.conf: line 337: /dev/sda1: Permission denied)
Another thing I am trying to do is to show me an image instead of the ugly logo that appears on the screen, I have changed the options but I can’t get it to show me an image. It could be that Terminator doesn’t show images, that I’m writing the code wrong, or I don’t know what.
Can anyone share the code of a neofetch that shows an image?
Thanks to all of you.
Hi @Claudio,
I haven’t solved. You may carry on. I modified neofetch config.conf
659c image_loop="on"
.
608c
#image_source=“$HOME/.config/neofetch/mabox.ascii”
image_source="$HOME/Pictures/pexels.jpeg"
.
595c image_backend="w3m"
numbers are line numbers, made by diff -e
As you see kitty was used. (terminology may be used as well)
The problem is if image_loop=off then the image disappears. So CTRL+c is the exit.
Thanks, unfortunately I broke my system, I have to reinstall everything from scratch. I will come back on the subject as soon as Nabox is up and running again.
I keep modifying my neofetch and it still does not show me an image.
I tried from the terminal to launch w3m /home/claudio/.config/neofetch/mabox_3d.png and it works, it opens the image in a window outside the terminal but it opens it.
In the neofecth code I modified the image source in the following ways:
image_source=“$HOME/claudio/.config/neofetch/mabox_3d.png”
image_source=“$/HOME/claudio/.config/neofetch/mabox_3d.png”
image_source=“$~/HOME/claudio/.config/neofetch/mabox_3d.png”
image_source=“$home/claudio/.config/neofetch/mabox_3d.png”
image_source=“$/home/claudio/.config/neofetch/mabox_3d.png”
image_source=“$~/home/claudio/.config/neofetch/mabox_3d.png”
image_loop=“on”
image_loop=“off”
I have enabled and disabled the ascii options and nothing has worked.
Could it be due to the “themes”, some syntax error, another option?
I was able to modify the text area as shown in the image. I can’t make any progress with this, it’s already a personal challenge.
I will add my code for review and if you notice what might be going wrong please let me know.
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info "${cl2} ╭─ " distro
info "${cl2} ├─ " kernel
info "${cl2} ├─ " users
info "${cl2} ├─ " packages
info "${cl2} ╰─ " shell
echo
info "${cl6} ╭─ " wm
info "${cl6} ├─ " term
info "${cl6} ├─ " term_font
info "${cl6} ├─ " theme
info "${cl6} ├─ " icons
info "${cl6} ╰─ " font
echo
# info "${cl4} ╭─ " model
info "${cl4} ╭─ " cpu
info "${cl4} ├─ " gpu
info "${cl4} ├─ " gpu_driver
info "${cl4} ├─ " resolution
info "${cl4} ├─ " memory
info "${cl4} ├─ ${cl0} " disk
info "${cl4} ├─ ${cl0} " battery
info "${cl4} ╰─ " uptime
prin ""
prin " \n \n \n ${cl3} \n \n ${cl5} \n \n ${cl2} \n \n ${cl6} \n \n ${cl4} \n \n ${cl1} \n \n ${cl7} \n \n ${cl0} \n \n "
# info title
# info underline
# info "OS" distro
# info "Host" model
# info "Kernel" kernel
# info "Uptime" uptime
# info "Packages" packages
# info "Shell" shell
# info "Resolution" resolution
# info "DE" de
# info "WM" wm
# info "WM Theme" wm_theme
# info "Theme" theme
# info "Icons" icons
# info "Terminal" term
# info "Terminal Font" term_font
# info "CPU" cpu
# info "GPU" gpu
# info "Memory" memory
# info "GPU Driver" gpu_driver # Linux/macOS only
# info "CPU Usage" cpu_usage
# info "Disk" disk
# info "Battery" battery
# info "Font" font
# info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player"
# info "Local IP" local_ip
# info "Public IP" public_ip
# info "Users" users
# info "Locale" locale # This only works on glibc systems.
# info cols
}
Title
Hide/Show Fully qualified domain name.
Default: ‘off’
Values: ‘on’, ‘off’
Flag: --title_fqdn
title_fqdn=“off”
Kernel
Shorten the output of the kernel function.
Default: ‘on’
Values: ‘on’, ‘off’
Flag: --kernel_shorthand
Supports: Everything except *BSDs (except PacBSD and PC-BSD)
Ola @Claudio ,
I would have sent only the modified lines. Let us suppose you copied the original config.conf to config1.conf then diff -c config1.conf config.conf > differ.txt
and then copy differ.txt as preformatted text – select and CTRL+E
Modify this line image_source=“$~/home/claudio/.config/neofetch/mabox_3d.png” ## wrong image_source=“/home/claudio/.config/neofetch/mabox_3d.png”
tylde is your home directory, but you can use absolute path
dollar sign is needed only if you use an environment variable
the second difference ascii_colors=(2 7)
it may be irrelevant now
Terminal emulator is terminology ( just to make sure)
The hashmarks were lost / filtered out you sent above. So there will be some more iterations.
Thank you, I will check the differences as you indicate and continue testing.
I’ve sent the whole code in case you see any errors elsewhere that would prevent neofetch from working normally.
Can we share/attach the file? I couldn’t find the option to do so.
Hi @Claudio ,
Para no complicar demasiado las cosas. Así es como he probado desde cero:
mabox-linux-23.06-Istredd-230623-linux61.iso – instalación nueva
cp .config/conky/images/mabox_3d.png .config/neofetch/
yay -S terminology
cambio en config.com :
595 image_backend="w3m"
608 image_source="$HOME/.config/neofetch/mabox_3d.png"
Hi @zolw
I have followed your recommended steps.
To avoid errors, first I moved everything I had in the /home/claudio/.config/neofetch folder to another folder, then I copied and pasted the commands in the console according to what you posted, now neofetch gets the following error:
(/home/claudio/.config/neofetch/config.conf: line 725: $‘OS,\n# AOSC’: command not found)
This is line 725 in the file: # NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, “AOSC OS”
It is marked as comment (#),
I don't know, I think I'm going to build my config.conf file from zero
Well, I somehow managed to get it to work on Terminology, but not on Terminator, maybe the way it affects this terminal makes it not work.
Now it remains to figure that out and if I can get it to display the image with one of the other neofetch layouts.
Thank you very much for your support.
I’ll keep insisting until I get it to display the way I want it to on Terminator too and if possible on any terminal.
I asked @monster but he didn’t answer me yet, while waiting for the answer I was following the thread, I tried the link and followed the steps, but I get to a point where “access denied” appears in my terminal and from there I don’t know how to continue, I kept looking and found this other answer in Git Hub
, maybe my Terminator doesn't manage to show images like Terminology does.
If you can think of a way to do it, I keep trying, meanwhile I leave it in by pass.