Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display disk usage for multiple mountpoints #1

Closed
tulpenkiste opened this issue Oct 22, 2023 · 7 comments
Closed

Display disk usage for multiple mountpoints #1

tulpenkiste opened this issue Oct 22, 2023 · 7 comments

Comments

@tulpenkiste
Copy link

Right now, it only shows the usage for the root.
However, I have 3 different mount locations I'd like to be able to display (/, /home and a directory in my home folder).
Is there any way cutefetch could add an option to be able to add multiple mountpoints for disk usage listing?

@AlphaTechnolog
Copy link
Owner

Yeah i think it's mostly because of this line that i will be able to do it, but i will have to first investigate on how to detect the others mountpoints in order to call that logic for each mountpoint

@AlphaTechnolog
Copy link
Owner

for convenience, can you please share me your /proc/mounts? i would like to see if it's suitable/ez to me to just read it and quickly parse it as needed

@AlphaTechnolog
Copy link
Owner

some advances in this are present in the feature/multidisk branch if you wanna test it, anyways im planning on adding a new flag to disable/enable it in case you don't want or want to show the whole disks, looks like this atm:
image

@tulpenkiste
Copy link
Author

for convenience, can you please share me your /proc/mounts? i would like to see if it's suitable/ez to me to just read it and quickly parse it as needed

Sure, here it is:

proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
dev /dev devtmpfs rw,nosuid,relatime,size=6038916k,nr_inodes=1509729,mode=755,inode64 0 0
run /run tmpfs rw,nosuid,nodev,relatime,mode=755,inode64 0 0
efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/nvme0n1p2 / ext4 rw,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,inode64 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15964 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,nosuid,nodev,relatime,pagesize=2M 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
ramfs /etc/pacman.d/gnupg ramfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,size=6045896k,nr_inodes=1048576,inode64 0 0
/dev/nvme0n1p4 /home ext4 rw,relatime 0 0
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/mmcblk0p1 /home/tulpenkiste/Documents/Games/Steam ext4 rw,relatime,errors=remount-ro 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=1209176k,nr_inodes=302294,mode=700,uid=1000,gid=1000,inode64 0 0
portal /run/user/1000/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0

@tulpenkiste
Copy link
Author

some advances in this are present in the feature/multidisk branch if you wanna test it, anyways im planning on adding a new flag to disable/enable it in case you don't want or want to show the whole disks, looks like this atm: image

Just tried it, it works nicely.
image

@AlphaTechnolog
Copy link
Owner

yep, it's great to see it worked 😁. I think i will be polishing a little more this changes and merging them into the main branch, but, the next step, will be adding a config file or something to hide multidisk if the user doesn't wants to show every disk.

@AlphaTechnolog
Copy link
Owner

merged to main :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants