Waybar : Limit mpris data length to 32 chars.
This commit is contained in:
parent
f9f5e3b0c3
commit
ad44bf91d4
|
@ -97,10 +97,17 @@ in {
|
||||||
on-click-middle = "pavucontrol";
|
on-click-middle = "pavucontrol";
|
||||||
on-click-right = "pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
on-click-right = "pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||||
};
|
};
|
||||||
mpris = {
|
mpris = let
|
||||||
format = "{player_icon} {title} - {artist}";
|
maxLength = 32;
|
||||||
format-paused = "{status_icon} {title} - {artist}";
|
in {
|
||||||
tooltip-format = "{player}: {dynamic}";
|
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 = {
|
player-icons = {
|
||||||
"default" = "";
|
"default" = "";
|
||||||
"firefox" = "";
|
"firefox" = "";
|
||||||
|
@ -109,8 +116,6 @@ in {
|
||||||
status-icons = {
|
status-icons = {
|
||||||
"paused" = "";
|
"paused" = "";
|
||||||
};
|
};
|
||||||
on-click-middle = "playerctl stop";
|
|
||||||
# ignored-players = [ "firefox" ];
|
|
||||||
};
|
};
|
||||||
cpu = {
|
cpu = {
|
||||||
format = "{usage}% ({load})";
|
format = "{usage}% ({load})";
|
||||||
|
|
Loading…
Reference in a new issue