helmuthdu / conky_colors

CONKY-colors is an easier way to configure Conky
GNU General Public License v3.0
123 stars 39 forks source link

Add patch to no display BTRFS snapshots mountpoints and Docker BTRFS … #76

Closed kevinchevreuil closed 1 year ago

kevinchevreuil commented 2 years ago

With the original code, all BTRFS mountpoints and Docker mountpoint are display or not display by Conky.

AWK and grep don't include all mountpoints for a partition. For example, with BTRFS, when timeshift is used to take a snapshot of the / partition, a mountpoint is created, in this example, only mountpoint created by Timeshift was displayed in Conky but not the real mountpoint for the / partition.

The command lsblk -o MOUNTPOINTS and the exclude mountpoints created by Timeshift or apt-btrfs-snapshot fix this problem.

What's more, the mounting points with spaces are also displayed by Conky now.