hey. i have been reading the manpages, the github readme and issues but i haven't found a way to truncate a format string; something like below (assuming $player is defined):
playerctl -F -p "$player" metadata --format '{{trunc("{{artist}} - {{title}} {{status}}", 50)}}'
my dwmblocks has a stack allocated array of size 50. and i really don't want the music status to be longer than that, without this option i have to call to head and truncate the output of the format string.
i think it would be amazing if there was a function that'd explicitly resolve the format strings.
hey. i have been reading the manpages, the github readme and issues but i haven't found a way to truncate a format string; something like below (assuming
$playeris defined):my dwmblocks has a stack allocated array of size 50. and i really don't want the music status to be longer than that, without this option i have to call to
headand truncate the output of the format string.i think it would be amazing if there was a function that'd explicitly resolve the format strings.