Autoria de Alberto Federman Neto, albfneto
Atualizado em; 2 de Maio de 2018.
1 . INTRODUÇÃO:
Esta Dica é um complemento de minha Dica Anterior: “Variando Terminal e Shell”
2 . NEOFETCH:
Muitos conhecem o clássico Screenfetch, um Monitor de Sistema Linux, amplamente descrito pelo dono deste Blog, EDPS:
Screenfetch Atualizado Via GIT.
Screenfetch, Instalação em Qualquer Distro.
Screenfetch no Slackware e Demais Distros.
Screenfech. The Bash Screenshot Information Tool.
Uma modificação. Eu diria até uma melhoria, modernização, do Screenfetch é o Neofetch, também descrito aqui pelo EDPS:
Dica: Informações de Sistema com Neofetch.
Como citei em um extenso Artigo meu, Neofetch é instalável em Sabayon, com Entropy ou com Portage:
# equo up # equo i -av neofetch OU # emerge --sync # emerge -av neofetch
Para abrí-lo basta executar no terminal, o comando:
$ neofetch
3. MODIFICANDO E EDITANDO O NEOFETCH:
Você pode modificar o seu Neofetch, simplesmente editando o arquivo /etc/neofetch/config , mas isso é inseguro, você pode quebrar o Neofetch do Sistema.
Prefira editar o “seu” Arquivo de Neofetch: /home/usuario/.config/neofetch/config.conf . Copie para o proteger e edite, com seu editor favorito. Eu gosto de usar Kate ou Geany:
$ cd / $ cd ~/ $ cd .config/neofetch $ sudo cp config.conf config.conf.original $ kdesu geany config.conf
Você pode ativar ou desativar opções, e mudar as ordem delas, é fácil!
Exemplo: Num trecho do arquivo, Se você comentar a linha: info “CPU Usage” cpu usage , o uso de CPU não será mais mostrado. Também, a inversão dos valores “CPU” e “GPU” inverterá a Ordem delas na Tela.
Para que você entenda:
info "OS" distro info "Model" model info "Kernel" kernel info "CPU Usage" cpu_usage info "Disk" disk info "CPU" cpu info "GPU" gpu info "Memory" memory EDITE: info "OS" distro info "Model" model info "Kernel" kernel # não vai ver mais "CPU Usage" # info "CPU Usage" cpu_usage info "Disk" disk # Inverter a ordem entre "CPU" e "GPU" info "GPU" gpu info "CPU" cpu info "Memory" memory
Você pode editar muita coisa, até colocar imagem no lugar do Logotipo, ou mesmo fazer seu logotipo. Leia estes Artigos:
How To Display System Information With Neofetch.
Por exemplo trocar as cores…. depois de ler os Artigos, edite as linhas “colors” e “ascii_colors”
Ainda, caso você não queira editar o Arquivo, é possível sim, trocar as cores…. Invés de executar o comando “neofetch”, execute-o modificado;
Assim como no meu exemplo:
INVÉS DE: $ neofetch EXECUTE: $ neofetch --ascii_colors 1 5 4 7 8 9 --colors 1 5 4 6 3 2
Se quiser, experimente outras cores, trocando os números que identificam as cores, no comando.
Abaixo, na Figura, no Screenshot.
Note que no Terminal, o Shell, o Bash , é meu Bash personalizado (veja estas 2 Dicas, um e dois).
O Linux é o Sabayon versão 17.08, Bleeding Edge. Ambiente Gráfico é KDE5 Plasma. Terminal é o Konsole.
A Figura da Esquerda, borda Violeta, é o Neofetch padrão, e a da Direita, borda Vermelha, é o Neofetch com as cores modificadas, colorizado. Obtido pelo uso do comando modificado, como acima.

Neofetch, em Sabayon Linux. Padrão, e com as cores modificadas.
Desejando manter essas cores modificadas (sem modificar o arquivo do Neofetch), também é simples. Adicione estas linhas (abaixo) ao seu Arquivo /home/usuario/.bashrc :
$ kdesudo geany ~/.bashrc EDITE e ADICIONE: # Alias para o Neofetch: alias neofetch='neofetch --ascii_colors 1 5 4 7 8 9 --colors 1 5 4 6 3 2'
Sempre que usar o comando “neofetch”, ele já vai aparecer colorizado.
Querendo, você pode traduzir as Strings do arquivo. Neste segundo Screenshot, eis meu Neofetch, traduzido:

4. MEUS ARQUIVOS DE CONFIGURAÇÃO. PODE USAR COMO GABARITO:
São muitas as modificações possíveis. e se editar algo errado, pode ser que seu Neofetch, ou mesmo o seu Bash, parem de funcionar.
Por isso, para facilitar para vocês, eis os arquivos de configuração meus, para vocês partirem de uma cópia deles, se quiserem.
Copiem na Distro de vocês, os arquivos originais, para não estragá-los:
$ cd / $ cd ~/ # cp .bashrc .bashrc.copia.original # cp /.config/neofetch/config /.config/neofetch/config.copia.original
Agora, usando um editor em modo Root, edite os seus Arquivos do Bash (/home/usuario/.bashrc) e do Neofetch (/home/usuario/.config/neofetch/config).
Se quiser, use os meus, como modelo:
Arquivo de configuração de Bash. (/home/usuario/.bashrc) {***}
Observação: modifique para sua Distribuição, pois há linhas que só servem para Sabayon, e como o meu, com o Hora Ajustada por NTP.
# /etc/skel/.bashrc # # This file is sourced by all *interactive* bash shells on startup, # including some apparently interactive shells such as scp and rcp # that can't tolerate any output. So make sure this doesn't display # anything or bad things will happen ! # Teste de Bash, default em Sabayon, deixar: # Test for an interactive shell. There is no need to set anything # past this point for scp and rcp, and it's important to refrain from # outputting anything in those cases. if [[ $- != *i* ]] ; then # Shell is non-interactive. Be done now! return fi # Put your fun stuff here. # Arquivo de Configuração para Bash. # # Grave em /home/usuario/.bashrc # # Atualização e modificação destes: # # http://www.vivaolinux.com.br/etc/bashrc-2 e # http://www.vivaolinux.com.br/etc/bashrc-6 # # Por Albfneto <albfneto@fcfrp.usp.br>, VOL, 2017. Versão 21. # # O Original foi baseado numa modificação do Arquivo Default do # Sabayon Linux 13, e no Arquivo publicado # por Giga Tesla Boy: # http://www.vivaolinux.com.br/etc/bashrc-1 #Também inclue partes de Bashs modificados para Arch Linux: # https://wiki.archlinux.org/index.php/Color_Bash_Prompt#.2Fetc.2FDIR_COLORS # E destas configurações: # http://www.linuxandlife.com/2011/12/how-to-customize-command-prompt.html # # Cores diferentes para diretórios, arquivos etc...: Aparência modificada. # Boas Vindas. echo ' _ ' echo ' *v* *** BEM VINDO AO '`hostname`' ***' echo ' /(_)\ ' echo ' ^ ^ ' `date` echo ' ' #Sistema echo ' ' echo ' *** Sistema: '`uname -a`' ***' echo ' ' echo ' *** Usuario: '`who -m`' ***' echo ' _ ' # Checa a Hora do Brasil, lista servidores NTP e ajusta Teclado: echo ' _ ' echo ' *** Hora do Brasil e Servidores: ***' echo ' _ ' ntpq -p echo ' _ ' setxkbmap -model abnt2 -layout br -variant abnt2 echo ' _ ' echo '*** PRONTO, OK, EIS SEU TERMINAL, DIGITE SEU COMANDO: ***' date # Caso não queira Itens repetidos no bash_history # edite este .bashrc e adicione a linha: export HISTCONTROL=ignoreboth # Tem muitos comandos uteis e quer um historico maior das coisas?, Aumente aqui export HISTSIZE=1000 # Côres Gerais e Alias: export LS_OPTIONS='--color=auto' eval `dircolors` alias ls='ls --color=auto -1alhvX --group-directories-first' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' # ALIAS para teclado, ver acima. Este é Alias para ver compilar # o Portage. Veja: # edpsblog.wordpress.com/2017/07/20/how-to-otimizando-um-pouco-mais # -as-compilacoes-no-gentoo/ alias verportage='tail -f /var/tmp/portage/*/${PKG}*/temp/build.log' # Alias para o Neofetch: alias neofetch='neofetch --ascii_colors 1 5 4 7 8 9 --colors 1 5 4 6 3 2' #desativa sincronização vertical: export vblank_mode=0 # Para usar Terminal Powerline # export PATH="$HOME/.local/bin:$PATH" # export POWERLINE_COMMAND=powerline # export POWERLINE_CONFIG_COMMAND=powerline-config # powerline-daemon -q # POWERLINE_BASH_CONTINUATION=1 # POWERLINE_BASH_SELECT=1 # . ~/.local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh # para Terminal Powerline, Alternativo: # if [ -f `which powerline-daemon` ]; then # powerline-daemon -q # POWERLINE_BASH_CONTINUATION=1 # POWERLINE_BASH_SELECT=1 # . ~/Desktop/PACOTES/powerline/powerline/client/powerline.sh # fi # Côres Básicas do Prompt Inicial Simples, se quiser usar, descomente # PS1="\[\e[0;39m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;94m\]\$ \[\e[m\]\[\e[0;32m\]" # Outros Prompts modificados descomente para usar: # tambem tem este: # PS1="\[\e[36;1m\]\u@\[\e[32;1m\]\H> \[\e[0m\]" # E Este, que eu usava antes # PS1="\[\e[1;36m\]\u@ [\e[1;32m\]\H \[\e[1;34m\]--->>>[\[\e[1;33m\]\d \[\e[1;35m\]\t \[\e[1;37m\] ] \n\[\e[1;35m\] [\[\e[1;34m\] O DIRETORIO E= \[\e[1;32m\]\w \ [\[\e[1;35m\]------->" # Estes, por Carla Schroder: # https://www.linux.com/learn/how-make-fancy-and-useful-bash-prompt-linux # PS1='\[\e[1;36m\]\d \[\e[1;32m\]\t \[\e[1;33m\]\u@\[\e[1;35m\]\h:\w\$\[\e[0;31m\] ' # PS1='\[\e[1;36m\]\d \[\e[1;32m\]\t \[\e[1;33m\]\u@\[\e[1;35m\]\h:\w\$\[\e[0;31m\] ' # Modificado de Joshua Price. # https://www.maketecheasier.com/8-useful-and-interesting-bash-prompts/ PS1="\n\[\033[34m\] DATA, HORA, UTC E ANO: $(/bin/date)\n\[\033[32m\] ESTOU NO DIRETORIO: \w\n\[\033[1;31m\]\u@\h: \[\033[1;35m\]\$(/usr/bin/tty | /bin/sed -e 's:/dev/::'): \[\033[1;36m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed 's: ::g') Arquivos, Tamanho Total: \[\033[1;33m\]\$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //')b\[\033[0m\] $ \[\033[1m\]"
Arquivo de configuração de Neofetch. (/home/usuario/.config/neofetch/config) :
#!/usr/bin/env bash # # Neofetch config file # https://github.com/dylanaraps/neofetch # See this wiki page for more info: # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info print_info() { info title info underline info "OS" distro info "Model" model info "Kernel" kernel info "CPU Usage" cpu_usage info "Disk" disk info "CPU" cpu info "GPU" gpu info "Memory" memory info "Users" users info "Uptime" uptime info "Locale" locale 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 Usage" cpu_usage # info "Disk" disk # info "Battery" battery # info "Font" font # info "Song" song # info "Local IP" local_ip # info "Public IP" public_ip # info "Users" users # info "Install Date" install_date # info "Locale" locale # This only works on glibc systems. info line_break info cols info line_break } # 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) # # Example: # on: '4.8.9-1-ARCH' # off: 'Linux 4.8.9-1-ARCH' kernel_shorthand="on" # Distro # Shorten the output of the distro function # # Default: 'off' # Values: 'on', 'off', 'tiny' # Flag: --distro_shorthand # Supports: Everything except Windows and Haiku distro_shorthand="off" # Show/Hide OS Architecture. # Show 'x86_64', 'x86' and etc in 'Distro:' output. # # Default: 'on' # Values: 'on', 'off' # Flag: --os_arch # # Example: # on: 'Arch Linux x86_64' # off: 'Arch Linux' os_arch="on" # Uptime # Shorten the output of the uptime function # # Default: 'on' # Values: 'on', 'off', 'tiny' # Flag: --uptime_shorthand # # Example: # on: '2 days, 10 hours, 3 mins' # off: '2 days, 10 hours, 3 minutes' # tiny: '2d 10h 3m' uptime_shorthand="on" # Shell # Show the path to $SHELL # # Default: 'off' # Values: 'on', 'off' # Flag: --shell_path # # Example: # on: '/bin/bash' # off: 'bash' shell_path="off" # Show $SHELL version # # Default: 'on' # Values: 'on', 'off' # Flag: --shell_version # # Example: # on: 'bash 4.4.5' # off: 'bash' shell_version="on" # CPU # CPU speed type # # Default: 'bios_limit' # Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'. # Flag: --speed_type # Supports: Linux with 'cpufreq' # NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. speed_type="bios_limit" # CPU speed shorthand # # Default: 'off' # Values: 'on', 'off'. # Flag: --speed_shorthand. # # Example: # on: 'i7-6500U (4) @ 3.1GHz' # off: 'i7-6500U (4) @ 3.100GHz' speed_shorthand="off" # Shorten the output of the CPU function # # Default: 'off' # Values: 'on', 'off', 'tiny', 'name', 'speed' # Flag: --cpu_shorthand # # Example: # on: 'i7-6500U (4) @ 3.1GHz' # off: 'Intel i7-6500U (4) @ 3.1GHz' # tiny: 'i7-6500U (4)' # name: 'Intel i7-6500U (4)' # speed: '3.1GHz' cpu_shorthand="off" # CPU Speed # Hide/Show CPU speed. # # Default: 'on' # Values: 'on', 'off' # Flag: --cpu_speed # # Example: # on: 'Intel i7-6500U (4) @ 3.1GHz' # off: 'Intel i7-6500U (4)' cpu_speed="on" # CPU Cores # Display CPU cores in output # # Default: 'logical' # Values: 'logical', 'physical', 'off' # Flag: --cpu_cores # Support: 'physical' doesn't work on BSD. # # Example: # logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores) # physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores) # off: 'Intel i7-6500U @ 3.1GHz' cpu_cores="logical" # CPU Temperature # Hide/Show CPU temperature. # Note the temperature is added to the regular CPU function. # # Default: 'off' # Values: 'C', 'F', 'off' # Flag: --cpu_temp # Supports: Linux # # Example: # C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' # F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' # off: 'Intel i7-6500U (4) @ 3.1GHz' cpu_temp="off" # GPU # Enable/Disable GPU Brand # # Default: 'on' # Values: 'on', 'off' # Flag: --gpu_brand # # Example: # on: 'AMD HD 7950' # off: 'HD 7950' gpu_brand="on" # Which GPU to display # # Default: 'all' # Values: 'all', 'dedicated', 'integrated' # Flag: --gpu_type # Supports: Linux # # Example: # all: # GPU1: AMD HD 7950 # GPU2: Intel Integrated Graphics # # dedicated: # GPU1: AMD HD 7950 # # integrated: # GPU1: Intel Integrated Graphics gpu_type="all" # Resolution # Display refresh rate next to each monitor # Default: 'off' # Values: 'on', 'off' # Flag: --refresh_rate # Supports: Doesn't work on Windows. # # Example: # on: '1920x1080 @ 60Hz' # off: '1920x1080' refresh_rate="off" # Gtk Theme / Icons / Font # Shorten output of GTK Theme / Icons / Font # # Default: 'off' # Values: 'on', 'off' # Flag: --gtk_shorthand # # Example: # on: 'Numix, Adwaita' # off: 'Numix [GTK2], Adwaita [GTK3]' gtk_shorthand="off" # Enable/Disable gtk2 Theme / Icons / Font # # Default: 'on' # Values: 'on', 'off' # Flag: --gtk2 # # Example: # on: 'Numix [GTK2], Adwaita [GTK3]' # off: 'Adwaita [GTK3]' gtk2="on" # Enable/Disable gtk3 Theme / Icons / Font # # Default: 'on' # Values: 'on', 'off' # Flag: --gtk3 # # Example: # on: 'Numix [GTK2], Adwaita [GTK3]' # off: 'Numix [GTK2]' gtk3="on" # IP Address # Website to ping for the public IP # # Default: 'http://ident.me' # Values: 'url' # Flag: --ip_host public_ip_host="http://ident.me" # Disk # Which disks to display. # The values can be any /dev/sdXX, mount point or directory. # NOTE: By default we only show the disk info for '/'. # # Default: '/' # Values: '/', '/dev/sdXX', '/path/to/drive'. # Flag: --disk_show # # Example: # disk_show=('/' '/dev/sdb1'): # 'Disk (/): 74G / 118G (66%)' # 'Disk (/mnt/Videos): 823G / 893G (93%)' # # disk_show=('/'): # 'Disk (/): 74G / 118G (66%)' # disk_show=('/') # Disk subtitle. # What to append to the Disk subtitle. # # Default: 'mount' # Values: 'mount', 'name', 'dir' # Flag: --disk_subtitle # # Example: # name: 'Disk (/dev/sda1): 74G / 118G (66%)' # 'Disk (/dev/sdb2): 74G / 118G (66%)' # # mount: 'Disk (/): 74G / 118G (66%)' # 'Disk (/mnt/Local Disk): 74G / 118G (66%)' # 'Disk (/mnt/Videos): 74G / 118G (66%)' # # dir: 'Disk (/): 74G / 118G (66%)' # 'Disk (Local Disk): 74G / 118G (66%)' # 'Disk (Videos): 74G / 118G (66%)' disk_subtitle="mount" # Song # Print the Artist and Title on separate lines # # Default: 'off' # Values: 'on', 'off' # Flag: --song_shorthand # # Example: # on: 'Artist: The Fratellis' # 'Song: Chelsea Dagger' # # off: 'Song: The Fratellis - Chelsea Dagger' song_shorthand="off" # Install Date # Whether to show the time in the output # # Default: 'on' # Values: 'on', 'off' # Flag: --install_time # # Example: # on: 'Thu 14 Apr 2016 11:50 PM' # off: 'Thu 14 Apr 2016' install_time="on" # Set time format in the output # # Default: '24h' # Values: '12h', '24h' # Flag: --install_time_format # # Example: # 12h: 'Thu 14 Apr 2016 11:50 PM' # 24h: 'Thu 14 Apr 2016 23:50' install_time_format="12h" # Text Colors # Text Colors # # Default: 'distro' # Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' # Flag: --colors # # Each number represents a different part of the text in # this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info' # # Example: # colors=(distro) - Text is colored based on Distro colors. # colors=(4 6 1 8 8 6) - Text is colored in the order above. colors=(distro) # Text Options # Toggle bold text # # Default: 'on' # Values: 'on', 'off' # Flag: --bold bold="on" # Enable/Disable Underline # # Default: 'on' # Values: 'on', 'off' # Flag: --underline underline_enabled="on" # Underline character # # Default: '-' # Values: 'string' # Flag: --underline_char underline_char="-" # Color Blocks # Color block range # The range of colors to print. # # Default: '0', '7' # Values: 'num' # Flag: --block_range # # Example: # # Display colors 0-7 in the blocks. (8 colors) # neofetch --block_range 0 7 # # Display colors 0-15 in the blocks. (16 colors) # neofetch --block_range 0 15 block_range=(0 7) # Toggle color blocks # # Default: 'on' # Values: 'on', 'off' # Flag: --color_blocks color_blocks="on" # Color block width in spaces # # Default: '3' # Values: 'num' # Flag: --block_width block_width=3 # Color block height in lines # # Default: '1' # Values: 'num' # Flag: --block_height block_height=1 # Progress Bars # Bar characters # # Default: '-', '=' # Values: 'string', 'string' # Flag: --bar_char # # Example: # neofetch --bar_char 'elapsed' 'total' # neofetch --bar_char '-' '=' bar_char_elapsed="-" bar_char_total="=" # Toggle Bar border # # Default: 'on' # Values: 'on', 'off' # Flag: --bar_border bar_border="on" # Progress bar length in spaces # Number of chars long to make the progress bars. # # Default: '15' # Values: 'num' # Flag: --bar_length bar_length=15 # Progress bar colors # When set to distro, uses your distro's logo colors. # # Default: 'distro', 'distro' # Values: 'distro', 'num' # Flag: --bar_colors # # Example: # neofetch --bar_colors 3 4 # neofetch --bar_colors distro 5 bar_color_elapsed="distro" bar_color_total="distro" # Info display # Display a bar with the info. # # Default: 'off' # Values: 'bar', 'infobar', 'barinfo', 'off' # Flags: --cpu_display # --memory_display # --battery_display # --disk_display # # Example: # bar: '[---=======]' # infobar: 'info [---=======]' # barinfo: '[---=======] info' # off: 'info' cpu_display="off" memory_display="off" battery_display="off" disk_display="off" # Backend Settings # Image backend. # # Default: 'ascii' # Values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'tycat', 'w3m' # Flag: --backend image_backend="ascii" # Image Source # # Which image or ascii file to display. # # Default: 'auto' # Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' # Flag: --source # # NOTE: 'auto' will pick the best image source for whatever image backend is used. # In ascii mode, distro ascii art will be used and in an image mode, your # wallpaper will be used. image_source="auto" # Ascii Options # Ascii distro # Which distro's ascii art to display. # # Default: 'auto' # Values: 'auto', 'distro_name' # Flag: --ascii_distro # # NOTE: Arch and Ubuntu have 'old' logo variants. # Change this to 'arch_old' or 'ubuntu_old' to use the old logos. # NOTE: Ubuntu has flavor variants. # Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors. # NOTE: Arch, Crux and Gentoo have a smaller logo variant. # Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos. ascii_distro="auto" # Ascii Colors # # Default: 'distro' # Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' # Flag: --ascii_colors # # Example: # ascii_colors=(distro) - Ascii is colored based on Distro colors. # ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors. ascii_colors=(distro) # Bold ascii logo # Whether or not to bold the ascii logo. # # Default: 'on' # Values: 'on', 'off' # Flag: --ascii_bold ascii_bold="on" # Image Options # Image loop # Setting this to on will make neofetch redraw the image constantly until # Ctrl+C is pressed. This fixes display issues in some terminal emulators. # # Default: 'off' # Values: 'on', 'off' # Flag: --loop image_loop="off" # Thumbnail directory # # Default: '~/.cache/thumbnails/neofetch' # Values: 'dir' thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" # Crop mode # # Default: 'normal' # Values: 'normal', 'fit', 'fill' # Flag: --crop_mode # # See this wiki page to learn about the fit and fill options. # https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F crop_mode="normal" # Crop offset # Note: Only affects 'normal' crop mode. # # Default: 'center' # Values: 'northwest', 'north', 'northeast', 'west', 'center' # 'east', 'southwest', 'south', 'southeast' # Flag: --crop_offset crop_offset="center" # Image size # The image is half the terminal width by default. # # Default: 'auto' # Values: 'auto', '00px', '00%', 'none' # Flags: --image_size # --size image_size="auto" # Ggap between image and text # # Default: '3' # Values: 'num', '-num' # Flag: --gap gap=3 # Image offsets # Only works with the w3m backend. # # Default: '0' # Values: 'px' # Flags: --xoffset # --yoffset yoffset=0 xoffset=0 # Image background color # Only works with the w3m backend. # # Default: '' # Values: 'color', 'blue' # Flag: --bg_color background_color= # Scrot Options # Whether or not to always take a screenshot # You can manually take a screenshot with "--scrot" or "-s" # # Default: 'off' # Values: 'on', 'off' # Flags: --scrot # -s scrot="off" # Screenshot Program # Neofetch will automatically use whatever screenshot tool # is installed on your system. # # If 'neofetch -v' says that it couldn't find a screenshot # tool or you're using a custom tool then you can change # the option below to a custom command. # # Default: 'auto' # Values: 'auto' 'cmd -flags' # Flag: --scrot_cmd scrot_cmd="auto" # Screenshot Filename # What to name the screenshots # # Default: 'neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png' # Values: 'string' # Flag: --scrot_name scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png" # Image upload host # Where to upload the image. # # Default: 'teknik' # Values: 'imgur', 'teknik' # Flag: --image_host # # NOTE: If you'd like another image host to be added to Neofetch. # Open an issue on github. image_host="teknik" # Misc Options # Config version. # # NOTE: Don't change this value, neofetch reads this to determine # how to handle backwards compatibility. config_version="3.2.0"
5. ATUALIZAÇÃO, EM 2018:
Após a remoção da versão antiga, Neofetch, na versão mais atualizada, 3.4.0. foi instalado com Portage:
# equo rm --configfiles -av neofetch # emerge --sync # emerge -av neofetch
Eis o mais novo Screenshot, do Neofetch, traduzido e modificado, em um Terminal Konsole, com meu Bash personalizado:

O arquivo ~/.bashrc que usei é o mesmo anterior (Veja Item 4, {***}) Você pode usar o meu ou editar o seu, ou ainda configurar via Web.
O novo arquivo de configuração do Neofetch, agora é o /home/usuario/.config/neofetch/config.conf . Edite o seu próprio, traduza etc…. ou use minha nova versão, como gabarito:
# Por Dylan Araps, # modificado por Albfneto, <albfneto@fcfrp.usp.br>, 2018 # Neofetch config file # https://github.com/dylanaraps/neofetch # See this wiki page for more info: # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info print_info() { info title info underline # Traduzido: info "Sistema Operacional" distro info "Modelo" model info "Kernel" kernel info "Ligado a" uptime info "Num. de Pacotes Instalados" packages info "Shell" shell info "Resolucao" resolution info "Ger. de Janelas" wm info "Ambiente Grafico" de info "Tema Ger. Janelas" wm_theme info "Temas do Ambiente Grafico." theme info "Icones" icons info "Emulador de Terminal" term info "Fonte do Terminal" term_font info "CPU" cpu info "Memoria RAM, em uso/livre" memory info "Placa Grafica e GPU" gpu # info "GPU Driver" gpu_driver # Linux only info "Uso de CPU" cpu_usage info "Disco" disk # info "Bateria" battery # info "Fonte" font # info "Musica" song # info "IP Local" local_ip # info "IP Publico" public_ip info "Usuarios" users # info "Data da Inst." install_date info "Local" locale # This only works on glibc systems. info line_break info cols info line_break } # 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) # # Example: # on: '4.8.9-1-ARCH' # off: 'Linux 4.8.9-1-ARCH' kernel_shorthand="off" # Distro # Shorten the output of the distro function # # Default: 'off' # Values: 'on', 'off', 'tiny' # Flag: --distro_shorthand # Supports: Everything except Windows and Haiku distro_shorthand="off" # Show/Hide OS Architecture. # Show 'x86_64', 'x86' and etc in 'Distro:' output. # # Default: 'on' # Values: 'on', 'off' # Flag: --os_arch # # Example: # on: 'Arch Linux x86_64' # off: 'Arch Linux' os_arch="on" # Uptime # Shorten the output of the uptime function # # Default: 'on' # Values: 'on', 'off', 'tiny' # Flag: --uptime_shorthand # # Example: # on: '2 days, 10 hours, 3 mins' # off: '2 days, 10 hours, 3 minutes' # tiny: '2d 10h 3m' uptime_shorthand="off" # Shell # Show the path to $SHELL # # Default: 'off' # Values: 'on', 'off' # Flag: --shell_path # # Example: # on: '/bin/bash' # off: 'bash' shell_path="off" # Show $SHELL version # # Default: 'on' # Values: 'on', 'off' # Flag: --shell_version # # Example: # on: 'bash 4.4.5' # off: 'bash' shell_version="on" # CPU # CPU speed type # # Default: 'bios_limit' # Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'. # Flag: --speed_type # Supports: Linux with 'cpufreq' # NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. speed_type="scaling_cur_freq" # CPU speed shorthand # # Default: 'off' # Values: 'on', 'off'. # Flag: --speed_shorthand. # NOTE: This flag is not supported in systems with CPU speed less than 1 GHz # # Example: # on: 'i7-6500U (4) @ 3.1GHz' # off: 'i7-6500U (4) @ 3.100GHz' speed_shorthand="off" # Enable/Disable CPU brand in output. # # Default: 'on' # Values: 'on', 'off' # Flag: --cpu_brand # # Example: # on: 'Intel i7-6500U' # off: 'i7-6500U (4)' cpu_brand="on" # CPU Speed # Hide/Show CPU speed. # # Default: 'on' # Values: 'on', 'off' # Flag: --cpu_speed # # Example: # on: 'Intel i7-6500U (4) @ 3.1GHz' # off: 'Intel i7-6500U (4)' cpu_speed="on" # CPU Cores # Display CPU cores in output # # Default: 'logical' # Values: 'logical', 'physical', 'off' # Flag: --cpu_cores # Support: 'physical' doesn't work on BSD. # # Example: # logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores) # physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores) # off: 'Intel i7-6500U @ 3.1GHz' cpu_cores="physical" # CPU Temperature # Hide/Show CPU temperature. # Note the temperature is added to the regular CPU function. # # Default: 'off' # Values: 'C', 'F', 'off' # Flag: --cpu_temp # Supports: Linux, BSD # NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable # coretemp kernel module. This only supports newer Intel processors. # # Example: # C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' # F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' # off: 'Intel i7-6500U (4) @ 3.1GHz' cpu_temp="C" # GPU # Enable/Disable GPU Brand # # Default: 'on' # Values: 'on', 'off' # Flag: --gpu_brand # # Example: # on: 'AMD HD 7950' # off: 'HD 7950' gpu_brand="on" # Which GPU to display # # Default: 'all' # Values: 'all', 'dedicated', 'integrated' # Flag: --gpu_type # Supports: Linux # # Example: # all: # GPU1: AMD HD 7950 # GPU2: Intel Integrated Graphics # # dedicated: # GPU1: AMD HD 7950 # # integrated: # GPU1: Intel Integrated Graphics gpu_type="all" # Resolution # Display refresh rate next to each monitor # Default: 'off' # Values: 'on', 'off' # Flag: --refresh_rate # Supports: Doesn't work on Windows. # # Example: # on: '1920x1080 @ 60Hz' # off: '1920x1080' refresh_rate="on" # Gtk Theme / Icons / Font # Shorten output of GTK Theme / Icons / Font # # Default: 'off' # Values: 'on', 'off' # Flag: --gtk_shorthand # # Example: # on: 'Numix, Adwaita' # off: 'Numix [GTK2], Adwaita [GTK3]' gtk_shorthand="off" # Enable/Disable gtk2 Theme / Icons / Font # # Default: 'on' # Values: 'on', 'off' # Flag: --gtk2 # # Example: # on: 'Numix [GTK2], Adwaita [GTK3]' # off: 'Adwaita [GTK3]' gtk2="on" # Enable/Disable gtk3 Theme / Icons / Font # # Default: 'on' # Values: 'on', 'off' # Flag: --gtk3 # # Example: # on: 'Numix [GTK2], Adwaita [GTK3]' # off: 'Numix [GTK2]' gtk3="on" # IP Address # Website to ping for the public IP # # Default: 'http://ident.me' # Values: 'url' # Flag: --ip_host public_ip_host="http://ident.me" # Disk # Which disks to display. # The values can be any /dev/sdXX, mount point or directory. # NOTE: By default we only show the disk info for '/'. # # Default: '/' # Values: '/', '/dev/sdXX', '/path/to/drive'. # Flag: --disk_show # # Example: # disk_show=('/' '/dev/sdb1'): # 'Disk (/): 74G / 118G (66%)' # 'Disk (/mnt/Videos): 823G / 893G (93%)' # # disk_show=('/'): # 'Disk (/): 74G / 118G (66%)' # disk_show=('/') # Disk subtitle. # What to append to the Disk subtitle. # # Default: 'mount' # Values: 'mount', 'name', 'dir' # Flag: --disk_subtitle # # Example: # name: 'Disk (/dev/sda1): 74G / 118G (66%)' # 'Disk (/dev/sdb2): 74G / 118G (66%)' # # mount: 'Disk (/): 74G / 118G (66%)' # 'Disk (/mnt/Local Disk): 74G / 118G (66%)' # 'Disk (/mnt/Videos): 74G / 118G (66%)' # # dir: 'Disk (/): 74G / 118G (66%)' # 'Disk (Local Disk): 74G / 118G (66%)' # 'Disk (Videos): 74G / 118G (66%)' disk_subtitle="name" # Song # Print the Artist and Title on separate lines # # Default: 'off' # Values: 'on', 'off' # Flag: --song_shorthand # # Example: # on: 'Artist: The Fratellis' # 'Song: Chelsea Dagger' # # off: 'Song: The Fratellis - Chelsea Dagger' song_shorthand="off" # Install Date # Whether to show the time in the output # # Default: 'on' # Values: 'on', 'off' # Flag: --install_time # # Example: # on: 'Thu 14 Apr 2016 11:50 PM' # off: 'Thu 14 Apr 2016' install_time="on" # Set time format in the output # # Default: '24h' # Values: '12h', '24h' # Flag: --install_time_format # # Example: # 12h: 'Thu 14 Apr 2016 11:50 PM' # 24h: 'Thu 14 Apr 2016 23:50' install_time_format="24h" # Text Colors # Text Colors # # Default: 'distro' # Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' # Flag: --colors # # Each number represents a different part of the text in # this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info' # # Example: # colors=(distro) - Text is colored based on Distro colors. # colors=(4 6 1 8 8 6) - Text is colored in the order above. colors=(distro) # Text Options # Toggle bold text # # Default: 'on' # Values: 'on', 'off' # Flag: --bold bold="on" # Enable/Disable Underline # # Default: 'on' # Values: 'on', 'off' # Flag: --underline underline_enabled="on" # Underline character # # Default: '-' # Values: 'string' # Flag: --underline_char underline_char="_" # Color Blocks # Color block range # The range of colors to print. # # Default: '0', '7' # Values: 'num' # Flag: --block_range # # Example: # # Display colors 0-7 in the blocks. (8 colors) # neofetch --block_range 0 7 # # Display colors 0-15 in the blocks. (16 colors) # neofetch --block_range 0 15 block_range=(0 15) # Toggle color blocks # # Default: 'on' # Values: 'on', 'off' # Flag: --color_blocks color_blocks="on" # Color block width in spaces # # Default: '3' # Values: 'num' # Flag: --block_width block_width=5 # Color block height in lines # # Default: '1' # Values: 'num' # Flag: --block_height block_height=1 # Progress Bars # Bar characters # # Default: '-', '=' # Values: 'string', 'string' # Flag: --bar_char # # Example: # neofetch --bar_char 'elapsed' 'total' # neofetch --bar_char '-' '=' bar_char_elapsed="-" bar_char_total="=" # Toggle Bar border # # Default: 'on' # Values: 'on', 'off' # Flag: --bar_border bar_border="on" # Progress bar length in spaces # Number of chars long to make the progress bars. # # Default: '15' # Values: 'num' # Flag: --bar_length bar_length=15 # Progress bar colors # When set to distro, uses your distro's logo colors. # # Default: 'distro', 'distro' # Values: 'distro', 'num' # Flag: --bar_colors # # Example: # neofetch --bar_colors 3 4 # neofetch --bar_colors distro 5 bar_color_elapsed="distro" bar_color_total="distro" # Info display # Display a bar with the info. # # Default: 'off' # Values: 'bar', 'infobar', 'barinfo', 'off' # Flags: --cpu_display # --memory_display # --battery_display # --disk_display # # Example: # bar: '[---=======]' # infobar: 'info [---=======]' # barinfo: '[---=======] info' # off: 'info' cpu_display="on" memory_display="on" battery_display="off" disk_display="on" # Backend Settings # Image backend. # # Default: 'ascii' # Values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'tycat', 'w3m' # Flag: --backend image_backend="ascii" # Image Source # # Which image or ascii file to display. # # Default: 'auto' # Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' # Flag: --source # # NOTE: 'auto' will pick the best image source for whatever image backend is used. # In ascii mode, distro ascii art will be used and in an image mode, your # wallpaper will be used. image_source="auto" # Ascii Options # Ascii distro # Which distro's ascii art to display. # # Default: 'auto' # Values: 'auto', 'distro_name' # Flag: --ascii_distro # # NOTE: Arch and Ubuntu have 'old' logo variants. # Change this to 'arch_old' or 'ubuntu_old' to use the old logos. # NOTE: Ubuntu has flavor variants. # Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors. # NOTE: Arch, Crux and Gentoo have a smaller logo variant. # Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos. ascii_distro="auto" # Ascii Colors # # Default: 'distro' # Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' # Flag: --ascii_colors # # Example: # ascii_colors=(distro) - Ascii is colored based on Distro colors. # ascii_colors=4 5 1 8 7 6 - Ascii is colored using these colors. # ascii_colors=(distro) # Bold ascii logo # Whether or not to bold the ascii logo. # # Default: 'on' # Values: 'on', 'off' # Flag: --ascii_bold ascii_bold="on" # Image Options # Image loop # Setting this to on will make neofetch redraw the image constantly until # Ctrl+C is pressed. This fixes display issues in some terminal emulators. # # Default: 'off' # Values: 'on', 'off' # Flag: --loop image_loop="off" # Thumbnail directory # # Default: '~/.cache/thumbnails/neofetch' # Values: 'dir' thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" # Crop mode # # Default: 'normal' # Values: 'normal', 'fit', 'fill' # Flag: --crop_mode # # See this wiki page to learn about the fit and fill options. # https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F crop_mode="normal" # Crop offset # Note: Only affects 'normal' crop mode. # # Default: 'center' # Values: 'northwest', 'north', 'northeast', 'west', 'center' # 'east', 'southwest', 'south', 'southeast' # Flag: --crop_offset crop_offset="center" # Image size # The image is half the terminal width by default. # # Default: 'auto' # Values: 'auto', '00px', '00%', 'none' # Flags: --image_size # --size image_size="auto" # Ggap between image and text # # Default: '3' # Values: 'num', '-num' # Flag: --gap gap=3 # Image offsets # Only works with the w3m backend. # # Default: '0' # Values: 'px' # Flags: --xoffset # --yoffset yoffset=0 xoffset=0 # Image background color # Only works with the w3m backend. # # Default: '' # Values: 'color', 'blue' # Flag: --bg_color background_color= # Scrot Options # Whether or not to always take a screenshot # You can manually take a screenshot with "--scrot" or "-s" # # Default: 'off' # Values: 'on', 'off' # Flags: --scrot # -s scrot="off" # Screenshot Program # Neofetch will automatically use whatever screenshot tool # is installed on your system. # # If 'neofetch -v' says that it couldn't find a screenshot # tool or you're using a custom tool then you can change # the option below to a custom command. # # Default: 'auto' # Values: 'auto' 'cmd -flags' # Flag: --scrot_cmd scrot_cmd="auto" # Screenshot Filename # What to name the screenshots # # Default: 'neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png' # Values: 'string' # Flag: --scrot_name scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png" # Image upload host # Where to upload the image. # # Default: 'teknik' # Values: 'imgur', 'teknik' # Flag: --image_host # # NOTE: If you'd like another image host to be added to Neofetch. # Open an issue on github. image_host="teknik" # Misc Options # Stdout mode # Turn off all colors and disables image backend (ASCII/Image). # Useful for piping into another command. # Default: 'off' # Values: 'on', 'off' stdout="off" # Config version. # # NOTE: Don't change this value, neofetch reads this to determine # how to handle backwards compatibility. config_version="3.3.0"
Lembrando que você pode trocar as cores do Neofetch, até com comandos. exemplo:
$ neofetch --colors 9 7 5 4 3 2 OU $ neofetch --colors 1 2 3 1 1 1
veja:

Ótimo como sempre!
Não sei quanto ao neofetch, mas usando o screenfetch se você quiser exibir as informações do sistema sempre que abrir um terminal, bastará adicionar ao final do .base, .zshrc, etc isto:
screenfetch –
* retarda um pouco a abertura, mas fica bacana!
CurtirCurtir
Acabei de testar, funciona com screenfetch e também com o neofetch!
Deixei ativado no zsh, como o seu…
pq eu uso bash, zsh e fish. gosto dos três.
ficou legal!
CurtirCurtir
A propósito, uma Dica para Galera. Você pode colorizar o Screenfetch, também. Use o comando “screenfetch” com essas opções (ou faça um alias no seu arquivo de configuração da Shell)
screenfetch -v -E -c 3,6
-v é verbose, -E tira as mensagens de erro e -c “v,x , y,z” define as cores. No meu exemplo, 3.6.
CurtirCurtir
E o legal do Neofetch é a possibilidade de hospedar a screenshot em algum lugar com a opção -su, veja um exemplo deste seu artigo:
$ neofetch –ascii_colors 1 5 4 7 8 9 –colors 1 5 4 6 3 2 -su
CurtirCurtir