Waybar : Limit mpris data length to 32 chars.

This commit is contained in:
Dmitry Voronin 2024-10-06 21:52:00 +03:00
parent f9f5e3b0c3
commit ad44bf91d4
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -97,10 +97,17 @@ in {
on-click-middle = "pavucontrol";
on-click-right = "pactl set-source-mute @DEFAULT_SOURCE@ toggle";
};
mpris = {
mpris = let
maxLength = 32;
in {
format = "{player_icon} {title} - {artist}";
format-paused = "{status_icon} {title} - {artist}";
tooltip-format = "{player}: {dynamic}";
on-click-middle = "playerctl stop";
album-len = maxLength;
artist-len = maxLength;
title-len = maxLength;
# ignored-players = [ "firefox" ];
player-icons = {
"default" = "";
"firefox" = "󰈹";
@ -109,8 +116,6 @@ in {
status-icons = {
"paused" = "";
};
on-click-middle = "playerctl stop";
# ignored-players = [ "firefox" ];
};
cpu = {
format = "{usage}% ({load})";