jxai / lean-conky-config

Lean Conky config that just works
MIT License
121 stars 30 forks source link

How can I specify mountpoints to show? #22

Closed nilp0inter closed 3 weeks ago

nilp0inter commented 10 months ago

Hi,

My conky is only showing /boot, I suspect it's because I am using ZFS for the rest of the mountpoins. Anyway, I have a lot of mountpoints and it would be nice to specify a list of mountpoints to restrict what is shown.

Is that possible?

image

buck2202 commented 2 months ago

I was poking around in the code for a related reason (hiding bind mounts), and I think you can get what you want by modifying utils.enum_disks() in utils.lua

It just parses the output of findmnt, filtered down to specific filesystem types https://github.com/jxai/lean-conky-config/blob/27aeeb9c793ad3da8d1da9b777522eef9000e2df/lib/utils.lua#L130-L134

Probably just add zfs to the types list to start? But findmnt -bPUno TARGET,FSTYPE,SIZE,USED (with no fs filter), should tell you for sure what you need to add

jxai commented 3 weeks ago

LCC now has options to customize mountpoints, please check the doc and local.conf.example. zfs was also included in the default filesystem types.