Closed alferpal closed 4 years ago
A good way to do this would probably be akin to neofetch, which has the configuration options disk_show
and disk_subtitle
:
I think we should consider implementing something like the following.
New section in config.json
:
"disk": {
"show_disks": [
"local"
],
"combine_disks": true,
"disk_labels": "mountpoints",
"prepend_disk": true
}
Where:
show_disks
is an array which defines which disks' space is monitored, and can contain:
"local"
, which is all local filesystems detected by df
(current behaviour). This should override any other specifications in the array."/", "/mnt"
)."/dev/sda1", "/dev/mmcblk0p1"
).combine_disks
is a bool to decide whether to combine all space usage calculations into one "Disk" (current behaviour), or display each disk seperately (would be new behaviour).disk_labels
is defines what labels to assign to the disks. This would be essentially the same as neofetch
's behaviour, with options for /dev/
path, mountpoint path, or nothing. This is ignored if combine_disks
is true.prepend_disk
simply shows/hides the word "Disk" before each disk (i.e. printing Disk (/):
vs /:
However, given the current output implementation this would be a pretty big task to complete. My current thoughts would be to modify the Output
class so that rather than using each entry's key as its name, we pass a copy of output to each module and let each handle output individually, allowing for better customisability of each module's output. Of course, this requires modifying every single module to support it - is it worth the trouble?
If anyone has any better ideas, I'd love to hear them 😃.
Closing here as a very promising implementation is on its way (#67) !
Hey @alferpal, v4.8.0 has (finally) been released yesterday, including the multiple Disk
entry feature.
Sorry for being late. Bye 👋
Thanks!
Hello.
Thank you so much for this project.
There's a feature from archey3 that I'd like to see if we could port over here:
Is your feature request related to a problem? Please describe. I have more than one disk in my laptop, each with more than one partition. And in archey3 it was possible to choose which partitions to display
Describe the solution you'd like A way to display more than 1 disk / partition in the archey output. This should probabble be exposed to the users via a config option for listing which partitions to report.
Describe alternatives you've considered I don't know enough of the project or python to consider myself able to suggest an approach.
Additional context archey3 config archey3 examples
EDIT: added archey3 examples page, which show better than the config one the way of displaying multiple partitions.