From 8809f0fb5f85d05c80d2d7d43c5418494050ab7b Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 14 Jan 2025 17:37:43 -0600 Subject: [PATCH] waybar: add mpris icons Signed-off-by: Myned --- options/custom/programs/waybar/default.nix | 27 +++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/options/custom/programs/waybar/default.nix b/options/custom/programs/waybar/default.nix index 5c02b44..a230c08 100644 --- a/options/custom/programs/waybar/default.nix +++ b/options/custom/programs/waybar/default.nix @@ -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