aristocratos / btop

A monitor of resources
Apache License 2.0
21.32k stars 653 forks source link

[REQUEST] filter_zero option to filter out 0B disks #935

Open reukiodo opened 2 months ago

reukiodo commented 2 months ago

Is your feature request related to a problem? Please describe. OpenWrt by default doesn't use the typical /etc/fstab for mount points and removing the fstab filter results in many 0B disks showing up, resulting into either needing exclusion filter, or filter naming all specific mountpoints to show. Neither is ideal as this requires a static configuration to name specific disks, when only disks matching certain property (0B) not to be shown.

Describe the solution you'd like I would like a filter_zero = True config option to dynamically remove all 0B disks from display.

Describe alternatives you've considered Setting use_fstab = False and either statically configuring to exclude all current 0B disks, or statically configuring to include all current non-0B disks.

Additional context image should then become image

reukiodo commented 2 months ago

Ideally, filter_zero = True should be the default setting, and filter_zero = False would be the override.