1
1
Fork 0

waybar: add mpris icons

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-01-14 17:37:43 -06:00
parent 0954947153
commit 8809f0fb5f
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -275,20 +275,31 @@ in {
};
};
# BUG: Widget stays after last player closes
# https://github.com/Alexays/Waybar/issues/3107
# https://github.com/Alexays/Waybar/wiki/Module:-MPRIS
mpris =
common
// {
format = "{player_icon} {dynamic}";
format-paused = "{status_icon} {dynamic}";
artist-len = 64; # Characters
artist-len = 32; # Characters
title-len = 32; # Characters
dynamic-len = 64; # Characters
dynamic-importance-order = ["artist" "title"];
dynamic-order = ["artist" "title"];
dynamic-separator = " 󰧟 ";
player-icons.default = "󰎈";
status-icons.paused = "";
player-icons = {
default = "󰎈";
chromium = "";
firefox = "";
};
status-icons = {
paused = "";
stopped = "";
};
# TODO: on-click focus currently playing window
#// on-click = "";
@ -326,11 +337,11 @@ in {
// {
format = "{icon}";
format-icons = {
"1" = "";
"2" = "";
"3" = "";
};
# format-icons = {
# "1" = "";
# "2" = "";
# "3" = "";
# };
};
# https://github.com/Alexays/Waybar/wiki/Module:-PowerProfilesDaemon