Insert5StarName / NekoMC

a waybar/general component for displaying current song data in bars like waybar and controling players using MPRIS
GNU General Public License v3.0
11 stars 0 forks source link

Custom song/author name length? #8

Open Aleksanaa opened 1 year ago

Aleksanaa commented 1 year ago

Sometimes we don't want to display a long module in the waybar. Sometimes we have space of a certain size. Before seeing this project, I used playerctl to solve the problem like this:

playerctl metadata --follow --format '{{ status }} {{ trunc(title,8) }} | {{ trunc(artist,8) }}' | sed -u 's/Playing//;s/Paused//;s/ | $//'

And playerctl can use trunc to change the length of the output string. I hope this project will have those options as well.

Insert5StarName commented 1 year ago

Im currently a bit busy with stuff but the testing branch has some config stuff and the ability to scroll text so it only takes up 10 or what ever you want characters