Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

add show_package_total option#2212

Closed
PauloGDPeixoto wants to merge 2 commits intodylanaraps:masterfrom
PauloGDPeixoto:add-show_package_tot-option
Closed

add show_package_total option#2212
PauloGDPeixoto wants to merge 2 commits intodylanaraps:masterfrom
PauloGDPeixoto:add-show_package_tot-option

Conversation

@PauloGDPeixoto
Copy link
Copy Markdown

@PauloGDPeixoto PauloGDPeixoto commented Oct 10, 2022

Description

I found that the package count was degrading the performance of neofetch in my machines, so I added a parameter to optionally disable this particular output.

Features

Add --show_package_total flag to enable/disable the package count display in neofetch.

jinasanami added a commit to nmimusic/unifetch that referenced this pull request Oct 11, 2022
@jinasanami
Copy link
Copy Markdown

Wow, it works well on Univalent GNU/Linux!

2212

@jinasanami
Copy link
Copy Markdown

Oops, I forgot to attach the image what I turned off the option.
VirtualBox_plasma_13_10_2022_12_45_19

Comment thread neofetch

elif [[ $package_managers == tiny ]]; then
packages+=" (${manager_string%,*})"
if [[ $show_package_total == "on" ]]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be much better to return early if $show_package_total == "off" rather than re-indent the entire function

@hykilpikonna
Copy link
Copy Markdown

This feature already exists in neofetch. You can use --disable <infoname> to disable the detection of a specific item. In this case, you can use --disable packages

image

You can also turn off package manager detection by editing the ~/.config/neofetch/config.conf (specifically, comment out the info "Packages" packages line)

@PauloGDPeixoto PauloGDPeixoto closed this by deleting the head repository Oct 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants