From 569a1e48595b4d366d95c1811d3f8d84487a32c5 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 27 Jul 2024 16:13:29 +0300 Subject: [PATCH] Sway : Use font name from config. --- home/config/sway/module/Font.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/config/sway/module/Font.nix b/home/config/sway/module/Font.nix index ae01b7b3..1cf5add5 100644 --- a/home/config/sway/module/Font.nix +++ b/home/config/sway/module/Font.nix @@ -1,5 +1,8 @@ -{ ... }: { +{ config, ... }: let + fontName = config.style.font.sansSerif.name; + # fontSize = toString config.style.font.size.desktop; +in { text = '' - font "SF Pro Display Medium 0.001" + font "${fontName} Medium 0.001" ''; }