Artix Linux Forum

Other languages => Português => Topic started by: lennartpooppering on 03 January 2022, 20:12:54

Title: Como colocar a informação de "Init System" no Neofetch?
Post by: lennartpooppering on 03 January 2022, 20:12:54
Olá, pessoal! :D
Como posso configurar o Neofetch para o mesmo mostrar meu sistema de inicializção?
Title: Re: Como colocar a informação de "Init System" no Neofetch?
Post by: capezotte on 04 January 2022, 03:36:55
Até onde eu sei, não há uma função para isso embutida no próprio neofetch, porém você pode editar a função print_info() na configuração do mesmo (~/.config/neofetch/config.conf) e usar a função prin para mostrar o que quiser (https://github.com/dylanaraps/neofetch/wiki/Customizing-Info#prin):

Code: [Select]
print_info() {
    info title
    info underline

    info "OS" distro
    prin "Init" S6 # se liga no exemplo aqui
    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 cols
}

test.png