sway/waybar: Use html entity for thinsp

This also moves it to waybar’s let binding, since it is only needed
there.
This commit is contained in:
Simon Bruder 2021-03-03 21:49:35 +01:00
parent c0a130fa59
commit 4923f70389
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -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";