From 4923f703895e2d1b634e7984f97cb6c7ec87585b Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 3 Mar 2021 21:49:35 +0100 Subject: [PATCH] sway/waybar: Use html entity for thinsp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also moves it to waybar’s let binding, since it is only needed there. --- users/simon/modules/sway.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/users/simon/modules/sway.nix b/users/simon/modules/sway.nix index 351d8f8..17264fd 100644 --- a/users/simon/modules/sway.nix +++ b/users/simon/modules/sway.nix @@ -22,7 +22,6 @@ let wallpaper = if nixosConfig.sbruder.unfree.allowAssets then wallpaperUnfree else wallpaperFree; cfg = config.wayland.windowManager.sway.config; - thinsp = " "; in lib.mkIf nixosConfig.sbruder.gui.enable { wayland.windowManager.sway = { @@ -310,6 +309,9 @@ lib.mkIf nixosConfig.sbruder.gui.enable { # nerd fonts are abusing arabic which breaks latin text # context: https://github.com/Alexays/Waybar/issues/628 lrm = "‎"; + + # for fine-grained control over spacing + thinsp = " "; in lib.generators.toJSON { } { layer = "top";