r/backtickbot • u/backtickbot • Mar 28 '21
https://np.reddit.com/r/Polybar/comments/mewdii/need_help_polybar_truncate_label_to_last_part/gskf5o4/
There is no way to slice certain characters off tokens. The numbers you put after the token names are the min length and max length of the token: https://github.com/polybar/polybar/wiki/Formatting#tokens
One thing you could do is to have multiple filesystem modules that inherit from the base module:
[module/filesystem]
type = internal/fs
interval = 25
label-unmounted-foreground = ${colors.foreground-alt}
...
[module/fs-root]
inherit = module/filesystem
mount-0 = /
label-mounted = /: %percentage_used%%
label-unmounted = / not mounted
[module/fs-data]
inherit = module/filesystem
mount-1 = /home/work/Data
label-mounted = /Data: %percentage_used%%
label-unmounted = /Data not mounted
0
Upvotes