From a962fea3a828f29cac52bd07d5c0d35abe2d2c1b Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 3 Mar 2021 21:40:24 +0100 Subject: [PATCH] sway/waybar: Use correct muted icon --- users/simon/modules/sway.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/users/simon/modules/sway.nix b/users/simon/modules/sway.nix index f419ea4..351d8f8 100644 --- a/users/simon/modules/sway.nix +++ b/users/simon/modules/sway.nix @@ -306,6 +306,10 @@ lib.mkIf nixosConfig.sbruder.gui.enable { ${pkgs.systemd}/bin/systemctl --user start ${unit} fi ''; + + # nerd fonts are abusing arabic which breaks latin text + # context: https://github.com/Alexays/Waybar/issues/628 + lrm = "‎"; in lib.generators.toJSON { } { layer = "top"; @@ -399,8 +403,8 @@ lib.mkIf nixosConfig.sbruder.gui.enable { pulseaudio = { format = "{volume}% {icon} {format_source}"; format-bluetooth = "{volume}% {icon} {format_source}"; - format-bluetooth-muted = "遼 {icon} {format_source}"; # FIXME: see below - format-muted = "遼 {format_source}"; # FIXME: use normal mute icon (ﱝ ), which for some reason is displayed right of the source? + format-bluetooth-muted = "${lrm}ﱝ${lrm} {icon} {format_source}"; + format-muted = "${lrm}ﱝ${lrm} {format_source}"; format-source = "{volume}% ${thinsp}"; format-source-muted = "${thinsp}"; format-icons = {